node/node_test: Add test double-configuration

This commit is contained in:
tbjump 2023-06-12 16:21:46 +00:00 committed by tbjump
parent 49a3fa44aa
commit 0d8bf5d3fe
1 changed files with 8 additions and 0 deletions

View File

@ -762,6 +762,14 @@ func TestGuardianConfigs(t *testing.T) {
},
err: "Check the order of your options.",
},
{
name: "double-configuration",
opts: []*GuardianOption{
GuardianOptionBigTablePersistence(nil),
GuardianOptionBigTablePersistence(nil),
},
err: "Component bigtable is already configured and cannot be configured a second time",
},
}
testGuardianConfigurations(t, tc)
}