aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/genesis_test.go
diff options
context:
space:
mode:
authorLewis Marshall <lewis@lmars.net>2017-06-21 20:54:23 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-06-21 20:54:23 +0800
commita1f3878ec50c8d9ce410d9715fa4c7ee998a3639 (patch)
tree101d29006107167fdfef99f13b741eb9c3d082b7 /cmd/geth/genesis_test.go
parenta20a02ce0bc4af67275eba418ff385f00bc87068 (diff)
downloadgo-tangerine-a1f3878ec50c8d9ce410d9715fa4c7ee998a3639.tar
go-tangerine-a1f3878ec50c8d9ce410d9715fa4c7ee998a3639.tar.gz
go-tangerine-a1f3878ec50c8d9ce410d9715fa4c7ee998a3639.tar.bz2
go-tangerine-a1f3878ec50c8d9ce410d9715fa4c7ee998a3639.tar.lz
go-tangerine-a1f3878ec50c8d9ce410d9715fa4c7ee998a3639.tar.xz
go-tangerine-a1f3878ec50c8d9ce410d9715fa4c7ee998a3639.tar.zst
go-tangerine-a1f3878ec50c8d9ce410d9715fa4c7ee998a3639.zip
swarm/test: add integration test for 'swarm up' (#14353)
Diffstat (limited to 'cmd/geth/genesis_test.go')
-rw-r--r--cmd/geth/genesis_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/geth/genesis_test.go b/cmd/geth/genesis_test.go
index 6c3ca7298..a00ae00c1 100644
--- a/cmd/geth/genesis_test.go
+++ b/cmd/geth/genesis_test.go
@@ -97,14 +97,14 @@ func TestCustomGenesis(t *testing.T) {
if err := ioutil.WriteFile(json, []byte(tt.genesis), 0600); err != nil {
t.Fatalf("test %d: failed to write genesis file: %v", i, err)
}
- runGeth(t, "--datadir", datadir, "init", json).cmd.Wait()
+ runGeth(t, "--datadir", datadir, "init", json).WaitExit()
// Query the custom genesis block
geth := runGeth(t,
"--datadir", datadir, "--maxpeers", "0", "--port", "0",
"--nodiscover", "--nat", "none", "--ipcdisable",
"--exec", tt.query, "console")
- geth.expectRegexp(tt.result)
- geth.expectExit()
+ geth.ExpectRegexp(tt.result)
+ geth.ExpectExit()
}
}