|
Ran
|
Jobs
1
|
Files
306
|
Run time
3min
|
Badge
README BADGES
|
push
travis-ci
test: fix flaky replication/status.test.lua Found issue: [009] --- replication/status.result Wed May 6 09:03:18 2020 [009] +++ replication/status.reject Tue May 12 15:55:09 2020 [009] @@ -307,11 +307,12 @@ [009] ... [009] r.upstream.status == "stopped" [009] --- [009] -- true [009] +- false [009] ... [009] r.upstream.message:match('Duplicate') ~= nil [009] --- [009] -- true [009] +- error: '[string "return r.upstream.message:match(''Duplicate'') ..."]:1: attempt [009] + to index field ''message'' (a nil value)' [009] ... [009] test_run:cmd('switch default') [009] --- To check the upstream status and it's message need to wait until an upstream appears. This prevents an attempt to index a nil value when one of those functions are called before a record about a peer appears in box.info.replication. It was observed on test: replication/show_error_on_disconnect after commit c6bea65f8 ('replication: recfg with 0 quorum returns immediately'). Closes #4969 (cherry picked from commit 8b72c8937)
41987 of 50818 relevant lines covered (82.62%)
904774.41 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 3 | 23026.3 (TARGET=coverage) | 0 |
82.62 |
Travis Job 23026.3 |