From a01f2aee7e3ed1b8cbdeed75e2260a8d8ffd62ac Mon Sep 17 00:00:00 2001 From: Cassandra Coyle Date: Fri, 6 Dec 2024 14:10:14 -0600 Subject: [PATCH] rm test file Signed-off-by: Cassandra Coyle --- tests/suite/leadershipchanges_test.go | 36 --------------------------- 1 file changed, 36 deletions(-) delete mode 100644 tests/suite/leadershipchanges_test.go diff --git a/tests/suite/leadershipchanges_test.go b/tests/suite/leadershipchanges_test.go deleted file mode 100644 index af27862..0000000 --- a/tests/suite/leadershipchanges_test.go +++ /dev/null @@ -1,36 +0,0 @@ -/* -Copyright (c) 2024 Diagrid Inc. -Licensed under the MIT License. -*/ - -package suite - -import ( - "context" - "testing" - "time" - - "github.com/diagridio/go-etcd-cron/internal/api/stored" - "github.com/diagridio/go-etcd-cron/tests/framework/cron" - "github.com/stretchr/testify/require" - clientv3 "go.etcd.io/etcd/client/v3" - "google.golang.org/protobuf/proto" -) - -func Test_leadership_change(t *testing.T) { - t.Parallel() - cron := cron.TripplePartitionRun(t) - time.Sleep(time.Second) - _, err := cron.Cron.List(context.Background(), "") - require.NoError(t, err) - leaderBytes, err := proto.Marshal(&stored.Leadership{ - Total: 0, - }) - require.NoError(t, err) - _, err = cron.Cron.KV.Do(context.Background(), clientv3.OpPut("abc/leadership/0", string(leaderBytes))) - require.NoError(t, err) - time.Sleep(time.Second * 3) - _, err = cron.Cron.KV.Do(context.Background(), clientv3.OpDelete("abc/leadership/0")) - require.NoError(t, err) - time.Sleep(time.Second * 3) -}