Skip to content

Commit

Permalink
Skip TestConcurrentKeyspaceRoutingRulesUpdates in code coverage mode
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
  • Loading branch information
rohit-nayak-ps committed May 14, 2024
1 parent e65f861 commit c468c8d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions go/vt/vtctl/workflow/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"math"
"math/rand"
"os"
"os/exec"
"sync"
"testing"
Expand Down Expand Up @@ -41,6 +42,14 @@ func TestUpdateKeyspaceRoutingRule(t *testing.T) {
// TestConcurrentKeyspaceRoutingRulesUpdates runs multiple keyspace routing rules updates concurrently to test
// the locking mechanism.
func TestConcurrentKeyspaceRoutingRulesUpdates(t *testing.T) {
if os.Getenv("GOCOVERDIR") != "" {
// While running this test in CI along with all other tests in for code coverage this test hangs very often.
// Possibly due to some resource constraints, since this test is one of the last.
// However just running this package by itself with code coverage works fine in CI.
t.Logf("Skipping TestConcurrentKeyspaceRoutingRulesUpdates test in code coverage mode")
t.Skip()
}

ctx := context.Background()

ts := memorytopo.NewServer(ctx, "zone1")
Expand Down

0 comments on commit c468c8d

Please sign in to comment.