Skip to content

Commit

Permalink
Increase sleep time in flaky tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
mscwilson committed Apr 4, 2024
1 parent 19102d2 commit 9c2417c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ApplicationInstallEventTest {
.installAutotracking(true)
createTracker(listOf(trackerConfiguration, plugin))

Thread.sleep(1000)
Thread.sleep(1200)

// check if event was tracked
Assert.assertTrue(eventTracked)
Expand All @@ -65,7 +65,7 @@ class ApplicationInstallEventTest {
.installAutotracking(true)
createTracker(listOf(trackerConfiguration, plugin))

Thread.sleep(1000)
Thread.sleep(1200)

// check if event was tracked
Assert.assertTrue(eventTracked)
Expand All @@ -76,7 +76,7 @@ class ApplicationInstallEventTest {
// create tracker again
createTracker(listOf(trackerConfiguration, plugin))

Thread.sleep(1000)
Thread.sleep(1200)

// check if event was tracked
Assert.assertFalse(eventTracked)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class PluginsTest {
val tracker = createTracker(listOf(plugin, testPlugin))
tracker.track(Structured("cat", "act"))

Thread.sleep(100)
Thread.sleep(200)
Assert.assertTrue(expectation)
}

Expand All @@ -84,7 +84,7 @@ class PluginsTest {
val tracker = createTracker(listOf(plugin1, plugin2, testPlugin))
tracker.track(ScreenView("sv"))

Thread.sleep(100)
Thread.sleep(200)
Assert.assertTrue(expectation)
}

Expand Down Expand Up @@ -112,7 +112,7 @@ class PluginsTest {
tracker.track(SelfDescribing("schema1", emptyMap()))
tracker.track(SelfDescribing("schema2", emptyMap()))

Thread.sleep(100)
Thread.sleep(200)
Assert.assertTrue(event1HasEntity!!)
Assert.assertFalse(event2HasEntity!!)
}
Expand All @@ -135,7 +135,7 @@ class PluginsTest {
tracker.track(SelfDescribing("schema2", emptyMap()))
tracker.track(Structured("cat", "act"))

Thread.sleep(100)
Thread.sleep(200)
Assert.assertTrue(event1Called)
Assert.assertFalse(event2Called)
Assert.assertFalse(event3Called)
Expand All @@ -156,7 +156,7 @@ class PluginsTest {
tracker.track(SelfDescribing("schema1", emptyMap()))
tracker.track(Structured("cat", "act"))

Thread.sleep(100)
Thread.sleep(200)
Assert.assertTrue(structuredCalled)
Assert.assertFalse(selfDescribingCalled)
}
Expand All @@ -172,7 +172,7 @@ class PluginsTest {

tracker.track(ScreenView("sv"))

Thread.sleep(100)
Thread.sleep(200)
Assert.assertTrue(expectation)
}

Expand All @@ -187,7 +187,7 @@ class PluginsTest {

tracker.track(ScreenView("sv"))

Thread.sleep(100)
Thread.sleep(200)
Assert.assertFalse(pluginCalled)
}

Expand All @@ -203,12 +203,12 @@ class PluginsTest {
val tracker = createTracker(listOf(filterPlugin, afterTrackPlugin))

tracker.track(SelfDescribing("s1", emptyMap()))
Thread.sleep(100)
Thread.sleep(200)

Assert.assertFalse(afterTrackCalled)

tracker.track(SelfDescribing("s2", emptyMap()))
Thread.sleep(100)
Thread.sleep(200)

Assert.assertTrue(afterTrackCalled)
}
Expand Down

0 comments on commit 9c2417c

Please sign in to comment.