deps(3.3.x): update OpenCensus API to 0.30.0#1610
Conversation
The list instance filter was matching several instances, because they contained the same prefix. We now perform an exact match instead.
|
Fixes #1606 |
| .listInstances( | ||
| Options.filter( | ||
| "name:instances/" + env.getTestHelper().getInstanceId().getInstance())) | ||
| .listInstances(Options.filter("name=" + env.getTestHelper().getInstanceId())) |
There was a problem hiding this comment.
I think this should be "name:" + env.getTestHelper().getInstanceId()
There was a problem hiding this comment.
The problem here is that : operator is a contains and we have 3 instances that start with spanner-testing. That is why the test is failing.
By using the = operator we do an exact match instead, having a single instance returned. More on operators here: https://cloud.google.com/sdk/gcloud/reference/topic/filters
Codecov Report
@@ Coverage Diff @@
## 3.3.x #1610 +/- ##
========================================
Coverage ? 85.12%
Complexity ? 2568
========================================
Files ? 143
Lines ? 14069
Branches ? 1351
========================================
Hits ? 11976
Misses ? 1531
Partials ? 562 Continue to review full report at Codecov.
|
No description provided.