Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Nov 26, 2024
1 parent b0bc4d9 commit ee0d06f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions contribs/gnodev/pkg/dev/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func Render(_ string) string {
foopkg := generateTestingPackage(t, "gno.mod", foobarGnoMod, "foo.gno", fooFile)

// Call NewDevNode with no package should work
cfg := createDefaultNodeConfig(foopkg)
cfg := createDefaultTestingNodeConfig(foopkg)

// XXX(gfanton): Setting this to `false` somehow makes the time block
// drift from the time spanned by the VM.
Expand Down Expand Up @@ -474,12 +474,19 @@ func generateTestingPackage(t *testing.T, nameFile ...string) PackagePath {
}
}

func createDefaultNodeConfig(pkgslist ...PackagePath) *NodeConfig {
func createDefaultTestingNodeConfig(pkgslist ...PackagePath) *NodeConfig {
cfg := DefaultNodeConfig(gnoenv.RootDir())
cfg.PackagesPathList = pkgslist
return cfg
}

func newTestingDevNode(t *testing.T, pkgslist ...PackagePath) (*Node, *mock.ServerEmitter) {
t.Helper()

cfg := createDefaultTestingNodeConfig(pkgslist...)
return newTestingDevNodeWithConfig(t, cfg)
}

func newTestingDevNodeWithConfig(t *testing.T, cfg *NodeConfig) (*Node, *mock.ServerEmitter) {
t.Helper()

Expand All @@ -502,11 +509,6 @@ func newTestingDevNodeWithConfig(t *testing.T, cfg *NodeConfig) (*Node, *mock.Se
return node, emitter
}

func newTestingDevNode(t *testing.T, pkgslist ...PackagePath) (*Node, *mock.ServerEmitter) {
cfg := createDefaultNodeConfig(pkgslist...)
return newTestingDevNodeWithConfig(t, cfg)
}

func newInMemorySigner(t *testing.T, chainid string) *gnoclient.SignerFromKeybase {
t.Helper()

Expand Down

0 comments on commit ee0d06f

Please sign in to comment.