-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix tests pkg and rename to devnet (#395)
- Loading branch information
1 parent
4872486
commit 545e2fc
Showing
5 changed files
with
33 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package test | ||
package devnet | ||
|
||
import ( | ||
"math/big" | ||
|
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,28 @@ | ||
package devnet | ||
|
||
import ( | ||
"flag" | ||
"os" | ||
"testing" | ||
) | ||
|
||
const ( | ||
DevNetETHAddress = "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7" | ||
) | ||
|
||
// testConfiguration is a type that is used to configure tests | ||
type testConfiguration struct { | ||
base string | ||
} | ||
|
||
var ( | ||
// set the environment for the test, default: devnet | ||
testEnv = "devnet" | ||
) | ||
|
||
// TestMain is used to trigger the tests and, in that case, check for the environment to use. | ||
func TestMain(m *testing.M) { | ||
flag.StringVar(&testEnv, "env", "devnet", "set the test environment") | ||
flag.Parse() | ||
os.Exit(m.Run()) | ||
} |
This file was deleted.
Oops, something went wrong.