-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(network): graceful cleanup for more consistent CI runs (#1960)
* test(network): graceful cleanup for more consistent CI runs * test: panicked as expected with max retry. Try longer timeouts * linter * test: try graceful json-rpc shutdown * test(network): fix IsStopped condition check * test(network): changelog, linter, grpc query hack * refactor: cli -> testnetwork and doc comments
- Loading branch information
1 parent
76bdaaa
commit d24f7a1
Showing
21 changed files
with
389 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package testnetwork | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
// Logger is a network logger interface that exposes testnet-level Log() methods | ||
// for an in-process testing network This is not to be confused with logging that | ||
// may happen at an individual node or validator level | ||
// | ||
// Typically, a `testing.T` struct is used as the logger for both the "Network" | ||
// and corresponding "Validators". | ||
type Logger interface { | ||
Log(args ...interface{}) | ||
Logf(format string, args ...interface{}) | ||
} | ||
|
||
var _ Logger = (*testing.T)(nil) |
Oops, something went wrong.