Skip to content

Commit 94de30f

Browse files
authored
tests: remove "Fail" part from test test names (#6377)
1 parent 03b00a1 commit 94de30f

File tree

23 files changed

+42
-42
lines changed

23 files changed

+42
-42
lines changed

agreement/cryptoVerifier_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,9 @@ func BenchmarkCryptoVerifierBundleVertification(b *testing.B) {
388388
}
389389
}
390390

391-
// TestCryptoVerifierVerificationFailures tests to see that the cryptoVerifier.VerifyVote returns an error in the vote response
391+
// TestCryptoVerifierVerificationErrs tests to see that the cryptoVerifier.VerifyVote returns an error in the vote response
392392
// when being unable to enqueue a vote.
393-
func TestCryptoVerifierVerificationFailures(t *testing.T) {
393+
func TestCryptoVerifierVerificationErrs(t *testing.T) {
394394
partitiontest.PartitionTest(t)
395395

396396
mainPool := execpool.MakePool(t)

agreement/persistence_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func TestEmptyMapDeserialization(t *testing.T) {
278278
require.NotNil(t, v1.Equivocators)
279279
}
280280

281-
func TestDecodeFailures(t *testing.T) {
281+
func TestDecodeErrs(t *testing.T) {
282282
partitiontest.PartitionTest(t)
283283
clock := timers.MakeMonotonicClock[TimeoutType](time.Date(2015, 1, 2, 5, 6, 7, 8, time.UTC))
284284
ce := clock.Encode()

agreement/pseudonode_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -458,22 +458,22 @@ func TestPseudonodeLoadingOfParticipationKeys(t *testing.T) {
458458

459459
type substrServiceLogger struct {
460460
logging.Logger
461-
looupStrings []string
461+
lookupStrings []string
462462
instancesFound []int
463463
}
464464

465465
func (ssl *substrServiceLogger) Infof(s string, args ...interface{}) {
466-
for i, str := range ssl.looupStrings {
466+
for i, str := range ssl.lookupStrings {
467467
if strings.Contains(s, str) {
468468
ssl.instancesFound[i]++
469469
return
470470
}
471471
}
472472
}
473473

474-
// TestPseudonodeFailedEnqueuedTasks test to see that in the case where we cannot enqueue the verification task to the backlog, we won't be waiting forever - instead,
474+
// TestPseudonodeNonEnqueuedTasks test to see that in the case where we cannot enqueue the verification task to the backlog, we won't be waiting forever - instead,
475475
// we would generate a warning message and keep going.
476-
func TestPseudonodeFailedEnqueuedTasks(t *testing.T) {
476+
func TestPseudonodeNonEnqueuedTasks(t *testing.T) {
477477
partitiontest.PartitionTest(t)
478478

479479
t.Parallel()
@@ -485,7 +485,7 @@ func TestPseudonodeFailedEnqueuedTasks(t *testing.T) {
485485

486486
subStrLogger := &substrServiceLogger{
487487
Logger: logging.TestingLog(t),
488-
looupStrings: []string{"pseudonode.makeVotes: failed to enqueue vote verification for", "pseudonode.makeProposals: failed to enqueue vote verification"},
488+
lookupStrings: []string{"pseudonode.makeVotes: failed to enqueue vote verification for", "pseudonode.makeProposals: failed to enqueue vote verification"},
489489
instancesFound: []int{0, 0},
490490
}
491491
sLogger := serviceLogger{

catchup/peerSelector_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ func peerSelectorTestRandVal(t *testing.T, seed int) float64 {
325325
randVal = randVal + 1
326326
return randVal
327327
}
328-
func TestPeerSelector_PeersDownloadFailed(t *testing.T) {
328+
func TestPeerSelector_PeersDownloadError(t *testing.T) {
329329
partitiontest.PartitionTest(t)
330330
t.Parallel()
331331

config/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ func TestEnsureAndResolveGenesisDirs_migrate(t *testing.T) {
915915
require.FileExists(t, filepath.Join(hotDir, "stateproof.sqlite-wal"))
916916
}
917917

918-
func TestEnsureAndResolveGenesisDirs_migrateCrashFail(t *testing.T) {
918+
func TestEnsureAndResolveGenesisDirs_migrateCrashErr(t *testing.T) {
919919
partitiontest.PartitionTest(t)
920920

921921
cfg := GetDefaultLocal()
@@ -947,7 +947,7 @@ func TestEnsureAndResolveGenesisDirs_migrateCrashFail(t *testing.T) {
947947
require.NoFileExists(t, filepath.Join(hotDir, "crash.sqlite-shm"))
948948
}
949949

950-
func TestEnsureAndResolveGenesisDirs_migrateSPFail(t *testing.T) {
950+
func TestEnsureAndResolveGenesisDirs_migrateSPErr(t *testing.T) {
951951
partitiontest.PartitionTest(t)
952952

953953
cfg := GetDefaultLocal()

daemon/algod/api/server/v2/test/handlers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ int 1`,
12851285
}
12861286
}
12871287

1288-
func TestSimulateTransactionVerificationFailure(t *testing.T) {
1288+
func TestSimulateTransactionVerificationErr(t *testing.T) {
12891289
partitiontest.PartitionTest(t)
12901290
t.Parallel()
12911291

data/bookkeeping/block_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ func TestInitialRewardsRateCalculation(t *testing.T) {
562562
return true
563563
}
564564

565-
// test expected failuire
565+
// test expected failure
566566
consensusParams.InitialRewardsRateCalculation = false
567567
require.False(t, runTest())
568568

@@ -658,7 +658,7 @@ func TestNextRewardsRateWithFix(t *testing.T) {
658658
}
659659
}
660660

661-
func TestNextRewardsRateFailsWithoutFix(t *testing.T) {
661+
func TestNextRewardsRateErrsWithoutFix(t *testing.T) {
662662
partitiontest.PartitionTest(t)
663663
t.Parallel()
664664

data/transactions/logic/evalAppTxn_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ int 1
13791379
})
13801380
}
13811381

1382-
func TestCreateOldAppFails(t *testing.T) {
1382+
func TestCreateOldAppErrs(t *testing.T) {
13831383
partitiontest.PartitionTest(t)
13841384
t.Parallel()
13851385

data/transactions/logic/eval_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4590,7 +4590,7 @@ func TestLinearOpcodes(t *testing.T) {
45904590
}
45914591
}
45924592

4593-
func TestRekeyFailsOnOldVersion(t *testing.T) {
4593+
func TestRekeyErrsOnOldVersion(t *testing.T) {
45944594
partitiontest.PartitionTest(t)
45954595
t.Parallel()
45964596

data/transactions/verify/txn_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,9 +932,9 @@ func TestTxnHeartbeat(t *testing.T) {
932932
verifyGroup(t, txnGroups, &blkHdr, breakHbProofFunc, restoreHbProofFunc, crypto.ErrBatchHasFailedSigs.Error())
933933
}
934934

935-
// TestTxnGroupCacheUpdateFailLogic test makes sure that a payment transaction contains a logic (and no signature)
935+
// TestTxnGroupCacheUpdateRejLogic test makes sure that a payment transaction contains a logic (and no signature)
936936
// is valid (and added to the cache) only if logic passes
937-
func TestTxnGroupCacheUpdateFailLogic(t *testing.T) {
937+
func TestTxnGroupCacheUpdateRejLogic(t *testing.T) {
938938
partitiontest.PartitionTest(t)
939939

940940
_, signedTxn, _, _ := generateTestObjects(100, 20, 0, 50)

0 commit comments

Comments
 (0)