@@ -539,6 +539,39 @@ var _ = Describe("ClusterClient", func() {
539
539
AfterEach (func () {})
540
540
541
541
assertPipeline ()
542
+
543
+ It ("doesn't fail node with context.Canceled error" , func () {
544
+ ctx , cancel := context .WithCancel (context .Background ())
545
+ cancel ()
546
+ pipe .Set (ctx , "A" , "A_value" , 0 )
547
+ _ , err := pipe .Exec (ctx )
548
+
549
+ Expect (err ).To (HaveOccurred ())
550
+ Expect (errors .Is (err , context .Canceled )).To (BeTrue ())
551
+
552
+ clientNodes , _ := client .Nodes (ctx , "A" )
553
+
554
+ for _ , node := range clientNodes {
555
+ Expect (node .Failing ()).To (BeFalse ())
556
+ }
557
+ })
558
+
559
+ It ("doesn't fail node with context.DeadlineExceeded error" , func () {
560
+ ctx , cancel := context .WithTimeout (context .Background (), 1 * time .Nanosecond )
561
+ defer cancel ()
562
+
563
+ pipe .Set (ctx , "A" , "A_value" , 0 )
564
+ _ , err := pipe .Exec (ctx )
565
+
566
+ Expect (err ).To (HaveOccurred ())
567
+ Expect (errors .Is (err , context .DeadlineExceeded )).To (BeTrue ())
568
+
569
+ clientNodes , _ := client .Nodes (ctx , "A" )
570
+
571
+ for _ , node := range clientNodes {
572
+ Expect (node .Failing ()).To (BeFalse ())
573
+ }
574
+ })
542
575
})
543
576
544
577
Describe ("with TxPipeline" , func () {
0 commit comments