hs-test: zero timeout on docker stop 40/37940/2
authorFlorin Coras <fcoras@cisco.com>
Tue, 17 Jan 2023 21:02:51 +0000 (13:02 -0800)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 18 Jan 2023 01:06:19 +0000 (01:06 +0000)
Should drop execution time for all tests by about 80%.

Type: test

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ib6b4ef9fb4e7745a61b40c0b34e53e4046ccdbcc

extras/hs-test/container.go

index 874ce3d..971f3b6 100644 (file)
@@ -187,5 +187,5 @@ func (c *Container) execAction(args string) (string, error) {
 }
 
 func (c *Container) stop() error {
-       return exechelper.Run("docker stop " + c.name)
+       return exechelper.Run("docker stop " + c.name + " -t 0")
 }