Skip to content

Commit

Permalink
Make test more precise
Browse files Browse the repository at this point in the history
The order of logged keys matters.
  • Loading branch information
raphael committed Oct 16, 2024
1 parent e9e2328 commit f3f1c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulse/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func TestWithMultipleDerivedPulseLoggers(t *testing.T) {
actualJSON, err := json.Marshal(logMap)
require.NoError(t, err, "Failed to marshal log entry")

assert.JSONEq(t, expectedLog, string(actualJSON), "Log entry doesn't match expected value")
assert.Equal(t, expectedLog, string(actualJSON), "Log entry doesn't match expected value")
}

checkLog(t, logs[0], `{"level":"info","msg":"root"}`)
Expand Down

0 comments on commit f3f1c40

Please sign in to comment.