Skip to content

Commit e1dbd4e

Browse files
committed
Swap around assert order
1 parent ac29471 commit e1dbd4e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

internal/api/lib_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ func TestGetPinnedMetrics(t *testing.T) {
415415
// GetMetrics 2
416416
metrics, err = GetPinnedMetrics(cache)
417417
require.NoError(t, err)
418-
assert.Equal(t, len(metrics.PerModule), 2)
419-
assert.Equal(t, metrics.PerModule[checksumStr].Hits, 0)
420-
assert.Equal(t, metrics.PerModule[cyberpunkChecksumStr].Hits, 0)
418+
assert.Equal(t, 2, len(metrics.PerModule))
419+
assert.Equal(t, 0, metrics.PerModule[checksumStr].Hits)
420+
assert.Equal(t, 0, metrics.PerModule[cyberpunkChecksumStr].Hits)
421421

422422
// Instantiate 1
423423
gasMeter := NewMockGasMeter(TESTING_GAS_LIMIT)
@@ -434,9 +434,9 @@ func TestGetPinnedMetrics(t *testing.T) {
434434
// GetMetrics 3
435435
metrics, err = GetPinnedMetrics(cache)
436436
require.NoError(t, err)
437-
assert.Equal(t, len(metrics.PerModule), 1)
438-
assert.Equal(t, metrics.PerModule[checksumStr].Hits, 1)
439-
assert.Equal(t, metrics.PerModule[cyberpunkChecksumStr].Hits, 0)
437+
assert.Equal(t, 1, len(metrics.PerModule))
438+
assert.Equal(t, 1, metrics.PerModule[checksumStr].Hits)
439+
assert.Equal(t, 0, metrics.PerModule[cyberpunkChecksumStr].Hits)
440440
}
441441

442442
func TestInstantiate(t *testing.T) {

0 commit comments

Comments
 (0)