Skip to content

Commit

Permalink
Fixing problematic test case
Browse files Browse the repository at this point in the history
  • Loading branch information
teivah committed Feb 23, 2020
1 parent 3fb6675 commit 42ee7af
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions factory_test.go
Expand Up @@ -308,15 +308,6 @@ func Test_Interval(t *testing.T) {
Assert(context.Background(), t, obs, IsNotEmpty())
}

func Test_Interval_NoItem(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
obs := Interval(WithDuration(time.Nanosecond), WithContext(ctx))
time.Sleep(150 * time.Millisecond)
cancel()
// As Interval is built on an event source, we expect no items
Assert(context.Background(), t, obs, IsEmpty())
}

func Test_Merge(t *testing.T) {
obs := Merge([]Observable{testObservable(1, 2), testObservable(3, 4)})
Assert(context.Background(), t, obs, HasItemsNoOrder(1, 2, 3, 4))
Expand Down

0 comments on commit 42ee7af

Please sign in to comment.