Skip to content

Commit

Permalink
CI-1658: Remove deprecated async Ginkgo tests
Browse files Browse the repository at this point in the history
Removed deprecated async Ginkgo tests.

Also following the example of controller-runtime:
kubernetes-sigs/controller-runtime#1564
  • Loading branch information
Nabil372 committed Nov 30, 2022
1 parent c5da0a5 commit ae30df8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions apis/workloads/v1alpha1/integration/priority_suite_test.go
Expand Up @@ -32,7 +32,7 @@ func TestSuite(t *testing.T) {
RunSpecs(t, "apis/workloads/v1alpha1")
}

var _ = BeforeSuite(func(done Done) {
var _ = BeforeSuite(func() {
logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true)))

By("bootstrapping test environment")
Expand Down Expand Up @@ -87,5 +87,4 @@ var _ = BeforeSuite(func(done Done) {
Expect(err).ToNot(HaveOccurred())
}()

close(done)
}, 60)
Expand Up @@ -32,7 +32,7 @@ func TestSuite(t *testing.T) {
RunSpecs(t, "controllers/rbac/integration")
}

var _ = BeforeSuite(func(done Done) {
var _ = BeforeSuite(func() {
logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true)))

By("bootstrapping test environment")
Expand Down Expand Up @@ -91,5 +91,4 @@ var _ = BeforeSuite(func(done Done) {
Expect(err).ToNot(HaveOccurred())
}()

close(done)
}, 60)
3 changes: 1 addition & 2 deletions controllers/workloads/console/integration/suite_test.go
Expand Up @@ -35,7 +35,7 @@ func TestSuite(t *testing.T) {
RunSpecs(t, "controllers/workloads/integration")
}

var _ = BeforeSuite(func(done Done) {
var _ = BeforeSuite(func() {
logf.SetLogger(zap.New(zap.UseDevMode(true), zap.WriteTo(GinkgoWriter)))

By("bootstrapping test environment")
Expand Down Expand Up @@ -124,5 +124,4 @@ var _ = BeforeSuite(func(done Done) {
Expect(err).ToNot(HaveOccurred())
}()

close(done)
}, 60)
3 changes: 1 addition & 2 deletions pkg/workloads/console/runner/integration/suite_test.go
Expand Up @@ -34,7 +34,7 @@ func TestSuite(t *testing.T) {
RunSpecs(t, "pkg/workloads/console/runner/integration")
}

var _ = BeforeSuite(func(done Done) {
var _ = BeforeSuite(func() {
logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true)))

By("bootstrapping test environment")
Expand All @@ -61,7 +61,6 @@ var _ = BeforeSuite(func(done Done) {
kubeClient, err = client.New(cfg, client.Options{Scheme: scheme})
Expect(err).NotTo(HaveOccurred(), "could not create client")

close(done)
}, 60)

var _ = AfterSuite(func() {
Expand Down

0 comments on commit ae30df8

Please sign in to comment.