Skip to content

Commit 0b55e35

Browse files
authored
chore: remove positive logging in tests (#996)
We only want tests to log when there's a failure to keep the output clean Signed-off-by: Aurora Gaffney <[email protected]>
1 parent d6f3ddb commit 0b55e35

File tree

4 files changed

+0
-16
lines changed

4 files changed

+0
-16
lines changed

ledger/alonzo/genesis_test.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -462,26 +462,20 @@ func TestNewAlonzoGenesisFromReader(t *testing.T) {
462462
"Expected LovelacePerUtxoWord 34482, got %d",
463463
result.LovelacePerUtxoWord,
464464
)
465-
} else {
466-
t.Logf("LovelacePerUtxoWord is correct: %d", result.LovelacePerUtxoWord)
467465
}
468466

469467
if result.ExecutionPrices.Steps.Rat.Cmp(big.NewRat(721, 10000)) != 0 {
470468
t.Errorf(
471469
"Unexpected prSteps: got %v, expected 721/10000",
472470
result.ExecutionPrices.Steps.Rat,
473471
)
474-
} else {
475-
t.Logf("prSteps is correct: %v", result.ExecutionPrices.Steps.Rat)
476472
}
477473

478474
if result.ExecutionPrices.Mem.Rat.Cmp(big.NewRat(577, 10000)) != 0 {
479475
t.Errorf(
480476
"Unexpected prMem: got %v, expected 577/10000",
481477
result.ExecutionPrices.Mem.Rat,
482478
)
483-
} else {
484-
t.Logf("prMem is correct: %v", result.ExecutionPrices.Mem.Rat)
485479
}
486480

487481
expectedCostModels := map[string]map[string]int{
@@ -496,9 +490,5 @@ func TestNewAlonzoGenesisFromReader(t *testing.T) {
496490
result.CostModels,
497491
expectedCostModels,
498492
)
499-
} else {
500-
t.Logf("CostModels are correct")
501493
}
502-
503-
t.Logf("AlonzoGenesis JSON decoding test completed successfully.")
504494
}

ledger/byron/genesis_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,5 @@ func TestNewByronGenesisFromReader(t *testing.T) {
429429
result,
430430
expected,
431431
)
432-
} else {
433-
t.Logf("ByronGenesis decoded correctly")
434432
}
435433
}

ledger/common/common_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,6 @@ func TestCertificateTypeMethods(t *testing.T) {
385385
got,
386386
tt.expected,
387387
)
388-
} else {
389-
t.Logf("PASS: %s -> Type() = %d, expected = %d \n", tt.name, got, tt.expected)
390388
}
391389
})
392390
}

ledger/conway/genesis_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,5 @@ func TestNewConwayGenesisFromReader(t *testing.T) {
466466
expected,
467467
actual,
468468
)
469-
} else {
470-
t.Logf("ConwayGenesis decoded correctly and matches expected structure")
471469
}
472470
}

0 commit comments

Comments
 (0)