-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: common method for building the app
- Loading branch information
1 parent
b97c663
commit a5f9bd4
Showing
2 changed files
with
39 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package app_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
|
||
"github.com/functionx/fx-core/v7/testutil/helpers" | ||
fxtypes "github.com/functionx/fx-core/v7/types" | ||
) | ||
|
||
func TestAppDB(t *testing.T) { | ||
helpers.SkipTest(t, "Skipping local test:", t.Name()) | ||
|
||
myApp, chainId := buildApp(t, fxtypes.MainnetChainId) | ||
require.NoError(t, myApp.LoadLatestVersion()) | ||
ctx := newContext(t, myApp, chainId, false) | ||
|
||
_ = ctx | ||
|
||
// do something ... | ||
} |
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