mirror of
https://github.com/hibiken/asynq.git
synced 2025-09-19 05:17:30 +08:00
Fix flaky tests
Some tests were failing due to mismatch in Score in ZSetEntry. Changed ZSetEntry Score to float64 type so that we can use cmpopts.EquateApprox to allow for margin when comparing.
This commit is contained in:
@@ -58,7 +58,7 @@ func TestClient(t *testing.T) {
|
||||
Retry: defaultMaxRetry,
|
||||
Queue: "default",
|
||||
},
|
||||
Score: time.Now().Add(2 * time.Hour).Unix(),
|
||||
Score: float64(time.Now().Add(2 * time.Hour).Unix()),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user