Skip to content

Commit

Permalink
incusd/db/cluster: Update tests for relaxed API extensions checks
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Jul 19, 2024
1 parent 14a9f80 commit 7f42b47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/server/db/cluster/open_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func TestEnsureSchema_ClusterNotUpgradable(t *testing.T) {
addNode(t, db, "1", schema, apiExtensions)
addNode(t, db, "2", schema, apiExtensions-1)
},
false, // The schema was not updated
"", // No error is returned
true, // The schema was not updated
"", // No error is returned
},
{
`this node's schema is behind`,
Expand All @@ -73,8 +73,8 @@ func TestEnsureSchema_ClusterNotUpgradable(t *testing.T) {
addNode(t, db, "1", schema, apiExtensions)
addNode(t, db, "2", schema, apiExtensions+1)
},
false,
"This cluster member's version is behind, please upgrade",
true,
"",
},
{
`inconsistent schema version and API extensions number`,
Expand All @@ -83,7 +83,7 @@ func TestEnsureSchema_ClusterNotUpgradable(t *testing.T) {
addNode(t, db, "2", schema+1, apiExtensions-1)
},
false,
"Cluster members have inconsistent versions",
"This cluster member's version is behind, please upgrade",
},
}

Expand Down

0 comments on commit 7f42b47

Please sign in to comment.