Skip to content

Commit

Permalink
Stabilised test.
Browse files Browse the repository at this point in the history
  • Loading branch information
martini committed Nov 1, 2018
1 parent 41ef5fa commit 385d6e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/requests/integration/cti_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
expect(log.initialized_at).to be_truthy
expect(log.start_at).to be_nil
expect(log.end_at).to be_truthy
expect(log.duration_waiting_time).to eq(2)
expect(log.duration_waiting_time).to be_between(2, 3)
expect(log.duration_talking_time).to be_nil

# outbound - II - new call
Expand Down Expand Up @@ -226,7 +226,7 @@
expect(log.initialized_at).to be_truthy
expect(log.start_at).to be_truthy
expect(log.end_at).to be_nil
expect(log.duration_waiting_time).to eq(2)
expect(log.duration_waiting_time).to be_between(2, 3)
expect(log.duration_talking_time).to be_nil

travel 2.seconds
Expand All @@ -249,8 +249,8 @@
expect(log.initialized_at).to be_truthy
expect(log.start_at).to be_truthy
expect(log.end_at).to be_truthy
expect(log.duration_waiting_time).to eq(2)
expect(log.duration_talking_time).to eq(2)
expect(log.duration_waiting_time).to be_between(2, 3)
expect(log.duration_talking_time).to be_between(2, 3)

# inbound - I - new call
params = 'event=newCall&direction=in&to=4930600000000&from=4912347114711&call_id=1234567890-3&user%5B%5D=user+1'
Expand Down

0 comments on commit 385d6e6

Please sign in to comment.