MCPcopy
hub / github.com/lxc/incus / TestNodeIsOutdated_AllNodesAtSameVersion

Function TestNodeIsOutdated_AllNodesAtSameVersion

internal/server/db/node_test.go:74–85  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

72}
73
74func TestNodeIsOutdated_AllNodesAtSameVersion(t *testing.T) {
75 tx, cleanup := db.NewTestClusterTx(t)
76 defer cleanup()
77
78 _, err := tx.CreateNode("buzz", "1.2.3.4:666")
79 require.NoError(t, err)
80
81 outdated, err := tx.NodeIsOutdated(context.Background())
82 require.NoError(t, err)
83
84 assert.False(t, outdated)
85}
86
87func TestNodeIsOutdated_OneNodeWithHigherVersion(t *testing.T) {
88 tx, cleanup := db.NewTestClusterTx(t)

Callers

nothing calls this directly

Calls 3

NewTestClusterTxFunction · 0.92
CreateNodeMethod · 0.80
NodeIsOutdatedMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…