Skip to content

Commit

Permalink
Refactor: removed comments + looping test
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoog committed Nov 5, 2023
1 parent a7a30a5 commit 6f8210e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions pkg/tests/protocol_startup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,24 +119,7 @@ func Test_BookInCommittedSlot(t *testing.T) {
}
}

func TestLook(t *testing.T) {
for {
Test_StartNodeFromSnapshotAndDisk(t)
}
}

func Test_StartNodeFromSnapshotAndDisk(t *testing.T) {
//logFile, err := os.OpenFile("/tmp/123.txt", os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0700)
//if err != nil {
// panic(err)
//}
//
//defer func(logFile *os.File) {
// if err = logFile.Close(); err != nil {
// panic(err)
// }
//}(logFile)

ts := testsuite.NewTestSuite(t,
//testsuite.WithLogHandler(log.NewTextHandler(logFile)),
testsuite.WithProtocolParametersOptions(
Expand Down Expand Up @@ -323,7 +306,6 @@ func Test_StartNodeFromSnapshotAndDisk(t *testing.T) {
),
),
)
//nodeC1.Protocol.SetLogLevel(log.LevelTrace)
ts.Wait()

// Everything that was accepted before shutting down should be available on disk.
Expand Down Expand Up @@ -358,7 +340,6 @@ func Test_StartNodeFromSnapshotAndDisk(t *testing.T) {
storage.WithPruningDelay(1),
))...,
)
//nodeD.Protocol.SetLogLevel(log.LevelTrace)
ts.Wait()

ts.AssertStorageRootBlocks(expectedStorageRootBlocksFrom9, ts.Nodes("nodeD")...)
Expand Down

0 comments on commit 6f8210e

Please sign in to comment.