Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fluky test #757

Merged
merged 3 commits into from
Jun 21, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix fluky test
We run a lot of tests in parallel, so the number of collections is in the range between 1 (this test) and many, where "many" is 100 for now.
  • Loading branch information
AlekSi committed Jun 21, 2022
commit eac780ff8aad34db5bae0584a5b72b6b5f210915
2 changes: 1 addition & 1 deletion integration/commands_administration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ func TestCommandsAdministrationServerStatus(t *testing.T) {
catalogStats, ok := must.NotFail(doc.Get("catalogStats")).(*types.Document)
assert.True(t, ok)

assert.InDelta(t, float64(1), must.NotFail(catalogStats.Get("collections")), 50)
assert.InDelta(t, float64(51), must.NotFail(catalogStats.Get("collections")), 50)
assert.InDelta(t, float64(3), must.NotFail(catalogStats.Get("internalCollections")), 3)

assert.Equal(t, int32(0), must.NotFail(catalogStats.Get("capped")))
Expand Down