From 1cf3fe2a09a821b381fd87da42589aef3e1972e7 Mon Sep 17 00:00:00 2001 From: Edwin Date: Wed, 6 Sep 2017 11:49:04 +0800 Subject: [PATCH] test: format description in dynamic test --- tests/funtional/dynamic_test.go | 12 ++++++------ tests/quorum/functional/dynamic_test.go | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/funtional/dynamic_test.go b/tests/funtional/dynamic_test.go index b451ac39..bb15d9ae 100644 --- a/tests/funtional/dynamic_test.go +++ b/tests/funtional/dynamic_test.go @@ -29,7 +29,7 @@ import ( "github.com/getamis/istanbul-tools/tests" ) -var _ = Describe("Dynamic validators addition/removal testing", func() { +var _ = Describe("TFS-02: Dynamic validators addition/removal testing", func() { const ( numberOfValidators = 4 ) @@ -47,7 +47,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() { blockchain.Finalize() }) - It("TFS-02-01 Add validators", func() { + It("TFS-02-01: Add validators", func() { testValidators := 1 By("Ensure the number of validators is correct", func() { @@ -81,7 +81,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() { }) }) - It("TFS-02-02 New validators consensus participation", func() { + It("TFS-02-02: New validators consensus participation", func() { testValidator := 1 newValidators, err := blockchain.AddValidators(testValidator) @@ -93,7 +93,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() { }) }) - It("TFS-02-03 Remove validators", func() { + It("TFS-02-03: Remove validators", func() { numOfCandidates := 3 By("Ensure that numbers of validator is equal to $numberOfValidators", func() { @@ -148,7 +148,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() { }) }) - It("TFS-02-04 Reduce validator network size below 2F+1", func() { + It("TFS-02-04: Reduce validator network size below 2F+1", func() { By("Ensure that blocks are generated by validators", func() { tests.WaitFor(blockchain.Validators(), func(geth container.Ethereum, wg *sync.WaitGroup) { Expect(geth.WaitForBlocks(5)).To(BeNil()) @@ -182,7 +182,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() { }) }) - It("TFS-02-05 Reduce validator network size below 2F+1", func() { + It("TFS-02-05: Reduce validator network size below 2F+1", func() { By("Ensure that blocks are generated by validators", func() { tests.WaitFor(blockchain.Validators(), func(geth container.Ethereum, wg *sync.WaitGroup) { Expect(geth.WaitForBlocks(5)).To(BeNil()) diff --git a/tests/quorum/functional/dynamic_test.go b/tests/quorum/functional/dynamic_test.go index 02789434..68fb726f 100644 --- a/tests/quorum/functional/dynamic_test.go +++ b/tests/quorum/functional/dynamic_test.go @@ -29,7 +29,7 @@ import ( "github.com/getamis/istanbul-tools/tests" ) -var _ = Describe("Dynamic validators addition/removal testing", func() { +var _ = Describe("QFS-02: Dynamic validators addition/removal testing", func() { const ( numberOfValidators = 4 ) @@ -52,7 +52,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() { constellationNetwork.Finalize() }) - It("QFS-02-01 Add validators", func() { + It("QFS-02-01: Add validators", func() { testValidators := 1 By("Ensure the number of validators is correct", func() { @@ -86,7 +86,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() { }) }) - It("QFS-02-02 New validators consensus participation", func() { + It("QFS-02-02: New validators consensus participation", func() { testValidator := 1 newValidators, err := blockchain.AddValidators(testValidator) @@ -98,7 +98,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() { }) }) - It("QFS-02-03 Remove validators", func() { + It("QFS-02-03: Remove validators", func() { numOfCandidates := 3 By("Ensure that numbers of validator is equal to $numberOfValidators", func() { @@ -153,7 +153,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() { }) }) - It("QFS-02-04 Reduce validator network size below 2F+1", func() { + It("QFS-02-04: Reduce validator network size below 2F+1", func() { By("Ensure that blocks are generated by validators", func() { tests.WaitFor(blockchain.Validators(), func(geth container.Ethereum, wg *sync.WaitGroup) { Expect(geth.WaitForBlocks(5)).To(BeNil()) @@ -187,7 +187,7 @@ var _ = Describe("Dynamic validators addition/removal testing", func() { }) }) - It("QFS-02-05 Reduce validator network size below 2F+1", func() { + It("QFS-02-05: Reduce validator network size below 2F+1", func() { By("Ensure that blocks are generated by validators", func() { tests.WaitFor(blockchain.Validators(), func(geth container.Ethereum, wg *sync.WaitGroup) { Expect(geth.WaitForBlocks(5)).To(BeNil())