fix: remove unused func

This commit is contained in:
Mustafa Sencer Özcan
2025-07-23 21:53:46 -03:00
committed by Maicon Costa
parent 0690fe07c7
commit 550c0bc140
@@ -798,33 +798,6 @@ func runDashboardValidationTests(t *testing.T, ctx TestContext) {
})
}
// skipIfMode skips the current test if running in any of the specified modes
// Usage: skipIfMode(t, rest.Mode1, rest.Mode4)
// or with a message: skipIfMode(t, "Known issue with conflict detection", rest.Mode1, rest.Mode4)
// nolint:unused
func (c *TestContext) skipIfMode(t *testing.T, args ...interface{}) {
t.Helper()
message := "Test not supported in this dual writer mode"
modes := []rest.DualWriterMode{}
// Parse args - first string is considered a message, all rest.DualWriterMode values are modes to skip
for _, arg := range args {
if msg, ok := arg.(string); ok {
message = msg
} else if mode, ok := arg.(rest.DualWriterMode); ok {
modes = append(modes, mode)
}
}
// Check if current mode is in the list of modes to skip
for _, mode := range modes {
if c.DualWriterMode == mode {
t.Skipf("%s (mode %d)", message, c.DualWriterMode)
}
}
}
// Run tests for quota validation
func runQuotaTests(t *testing.T, ctx TestContext) {
t.Helper()