MCPcopy Create free account
hub / github.com/tendermint/tendermint / TestNodeDelayedStart

Function TestNodeDelayedStart

node/node_test.go:95–111  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

93}
94
95func TestNodeDelayedStart(t *testing.T) {
96 cfg, err := config.ResetTestRoot("node_delayed_start_test")
97 require.NoError(t, err)
98
99 defer os.RemoveAll(cfg.RootDir)
100 now := tmtime.Now()
101
102 // create & start node
103 n := getTestNode(t, cfg, log.TestingLogger())
104 n.GenesisDoc().GenesisTime = now.Add(2 * time.Second)
105
106 require.NoError(t, n.Start())
107 defer n.Stop() //nolint:errcheck // ignore for tests
108
109 startTime := tmtime.Now()
110 assert.Equal(t, true, startTime.After(n.GenesisDoc().GenesisTime))
111}
112
113func TestNodeSetAppVersion(t *testing.T) {
114 cfg, err := config.ResetTestRoot("node_app_version_test")

Callers

nothing calls this directly

Calls 8

ResetTestRootFunction · 0.92
TestingLoggerFunction · 0.92
getTestNodeFunction · 0.85
GenesisDocMethod · 0.80
AddMethod · 0.65
StartMethod · 0.65
StopMethod · 0.65
EqualMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…