(t *testing.T)
| 72 | } |
| 73 | |
| 74 | func 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 | |
| 87 | func TestNodeIsOutdated_OneNodeWithHigherVersion(t *testing.T) { |
| 88 | tx, cleanup := db.NewTestClusterTx(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…