mirror of https://github.com/dirtbags/moth.git
Fixing some test issues
This commit is contained in:
parent
79c8412616
commit
77d5cc69d6
|
@ -10,6 +10,7 @@ test:
|
||||||
- main
|
- main
|
||||||
- merge_requests
|
- merge_requests
|
||||||
script:
|
script:
|
||||||
|
- go get github.com/go-redis/redis/v8
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
|
||||||
push:
|
push:
|
||||||
|
|
|
@ -14,6 +14,7 @@ RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' ./..
|
||||||
##########
|
##########
|
||||||
|
|
||||||
FROM builder AS tester
|
FROM builder AS tester
|
||||||
|
RUN go get github.com/go-redis/redis/v8
|
||||||
RUN go test ./...
|
RUN go test ./...
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
|
|
@ -185,7 +185,7 @@ func (s *RedisState) AwardPoints(teamID, category string, points int) error {
|
||||||
}
|
}
|
||||||
awardTime := time.Now().Unix()
|
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{
|
new_member := redis.Z{
|
||||||
Score: float64(awardTime),
|
Score: float64(awardTime),
|
||||||
|
|
Loading…
Reference in New Issue