Fixing some test issues

This commit is contained in:
Donaldson 2021-12-10 14:15:45 -08:00
parent 79c8412616
commit 77d5cc69d6
3 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,7 @@ test:
- main
- merge_requests
script:
- go get github.com/go-redis/redis/v8
- go test ./...
push:

View File

@ -14,6 +14,7 @@ RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' ./..
##########
FROM builder AS tester
RUN go get github.com/go-redis/redis/v8
RUN go test ./...
##########

View File

@ -185,7 +185,7 @@ func (s *RedisState) AwardPoints(teamID, category string, points int) error {
}
awardTime := time.Now().Unix()
point_string := fmt.Sprintf("%s %s %s", teamID, category, points)
point_string := fmt.Sprintf("%s %s %d", teamID, category, points)
new_member := redis.Z{
Score: float64(awardTime),