Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Jun 21, 2022
1 parent 226d13a commit fc3c89f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration/commands_administration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -781,10 +781,10 @@ func TestCommandsAdministrationServerStatus(t *testing.T) {
assert.Regexp(t, `^5\.0\.`, must.NotFail(doc.Get("version")))
assert.NotEmpty(t, must.NotFail(doc.Get("process")))

assert.InDelta(t, float64(1), must.NotFail(doc.Get("pid")), 5_000_000)
assert.InDelta(t, float64(0), must.NotFail(doc.Get("uptime")), 600)
assert.InDelta(t, float64(0), must.NotFail(doc.Get("uptimeMillis")), 600_000)
assert.InDelta(t, float64(0), must.NotFail(doc.Get("uptimeEstimate")), 6000)
assert.GreaterOrEqual(t, must.NotFail(doc.Get("pid")), int64(1))
assert.GreaterOrEqual(t, must.NotFail(doc.Get("uptime")), float64(0))
assert.GreaterOrEqual(t, must.NotFail(doc.Get("uptimeMillis")), int64(0))
assert.GreaterOrEqual(t, must.NotFail(doc.Get("uptimeEstimate")), int64(0))

expectedLocalTime := ConvertDocument(t, bson.D{{"localTime", primitive.NewDateTimeFromTime(time.Now())}})
testutil.CompareAndSetByPathTime(t, expectedLocalTime, doc, time.Duration(2*time.Second), types.NewPathFromString("localTime"))
Expand Down

0 comments on commit fc3c89f

Please sign in to comment.