Skip to content

Commit f70473f

Browse files
committed
TIMINGS
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
1 parent 956db39 commit f70473f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

envtest/internal/controlplane/plane_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ package controlplane_test
1818

1919
import (
2020
"context"
21+
"fmt"
22+
"time"
2123

2224
kauthn "k8s.io/api/authorization/v1"
2325
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -32,8 +34,11 @@ import (
3234
var _ = Describe("Control Plane", func() {
3335
It("should start and stop successfully with a default root shard", func() {
3436
plane := &Kcp{}
37+
By(fmt.Sprintf("starting the plane at %s", time.Now()))
3538
Expect(plane.Start()).To(Succeed())
39+
By(fmt.Sprintf("stopping the plane at %s", time.Now()))
3640
Expect(plane.Stop()).To(Succeed())
41+
By(fmt.Sprintf("stopped the plane at %s", time.Now()))
3742
})
3843
It("should use the given shard when starting, if present", func() {
3944
rootShard := &Shard{}
@@ -52,20 +57,30 @@ var _ = Describe("Control Plane", func() {
5257
// contract, but it's not clear how much else we actually need to handle, or
5358
// whether or not this is a safe operation.
5459
plane := &Kcp{}
60+
By(fmt.Sprintf("starting the plane at %s", time.Now()))
5561
Expect(plane.Start()).To(Succeed())
62+
By(fmt.Sprintf("stopping the plane at %s", time.Now()))
5663
Expect(plane.Stop()).To(Succeed())
64+
By(fmt.Sprintf("stopped the plane at %s", time.Now()))
65+
66+
By(fmt.Sprintf("starting the plane at %s", time.Now()))
5767
Expect(plane.Start()).To(Succeed())
68+
By(fmt.Sprintf("stopping the plane at %s", time.Now()))
5869
Expect(plane.Stop()).To(Succeed())
70+
By(fmt.Sprintf("stopped the plane at %s", time.Now()))
5971
})
6072

6173
Context("after having started", func() {
6274
var plane *Kcp
6375
BeforeEach(func() {
6476
plane = &Kcp{}
77+
By(fmt.Sprintf("starting the plane at %s", time.Now()))
6578
Expect(plane.Start()).To(Succeed())
6679
})
6780
AfterEach(func() {
81+
By(fmt.Sprintf("stopping the plane at %s", time.Now()))
6882
Expect(plane.Stop()).To(Succeed())
83+
By(fmt.Sprintf("stopped the plane at %s", time.Now()))
6984
})
7085

7186
It("should provision a working legacy user and legacy kubectl", func() {

0 commit comments

Comments
 (0)