diff --git a/integration/timeline_test.go b/integration/timeline_test.go index 1dce54c7e9..c5caadffc0 100644 --- a/integration/timeline_test.go +++ b/integration/timeline_test.go @@ -138,7 +138,7 @@ var _ = Describe("Timeline output", func() { Ω(session).Should(gbytes.Say(`3 specs`)) - Ω(session).Should(gbytes.Say(`a full timeline\n`)) + Ω(session).Should(gbytes.Say(`a full timeline [Serial]\n`)) Ω(session).Should(gbytes.Say(`a flaky test\n`)) Ω(session).Should(gbytes.Say(`retries a few times\n`)) Ω(session).Should(gbytes.Say(`> Enter \[BeforeEach\] a flaky test`)) diff --git a/internal/node.go b/internal/node.go index 6a15f19ae0..0686f74103 100644 --- a/internal/node.go +++ b/internal/node.go @@ -241,6 +241,9 @@ func NewNode(deprecationTracker *types.DeprecationTracker, nodeType types.NodeTy } case t == reflect.TypeOf(Serial): node.MarkedSerial = bool(arg.(serialType)) + if !labelsSeen["Serial"] { + node.Labels = append(node.Labels, "Serial") + } if !nodeType.Is(types.NodeTypesForContainerAndIt) { appendError(types.GinkgoErrors.InvalidDecoratorForNodeType(node.CodeLocation, nodeType, "Serial")) } diff --git a/internal/node_test.go b/internal/node_test.go index 138bf49fe2..eaa0323bb3 100644 --- a/internal/node_test.go +++ b/internal/node_test.go @@ -269,6 +269,7 @@ var _ = Describe("Constructing nodes", func() { It("marks the node as Serial", func() { node, errors := internal.NewNode(dt, ntIt, "text", body, Serial) Ω(node.MarkedSerial).Should(BeTrue()) + Ω(node.Labels).Should(Equal(Labels{"Serial"})) ExpectAllWell(errors) }) It("allows containers to be marked", func() {