You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kafka-connect-cloud-common/src/test/scala/io/lenses/streamreactor/connect/cloud/common/sink/seek/IndexManagerV2Test.scala
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,12 @@ class IndexManagerV2Test
75
75
privatevarindexManagerV2:IndexManagerV2= _
76
76
77
77
before {
78
+
// Defensive: a prior test (e.g. "drainGcQueue catches InterruptedException ...") can leave
79
+
// the current thread's interrupt flag set — close()'s final drainGcQueue / awaitTermination
80
+
// re-raises it after the test's own clear. cats-effect's unsafeRunSync() in open() returns
81
+
// None on an interrupted thread, which surfaces as NoSuchElementException: None.get. Clear any
82
+
// leaked interrupt state before each test so the flake cannot propagate between tests.
0 commit comments