Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit dee6adb

Browse files
committed
use match_array to reduce flakiness of /v3/routes test
- we don't care what order the destinations come back in 😌 Authored-by: Tim Downey <tdowney@vmware.com>
1 parent ae779de commit dee6adb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

spec/request/routes_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
url: "#{route_in_org.host}.#{route_in_org.domain.name}#{route_in_org.path}",
5555
created_at: iso8601,
5656
updated_at: iso8601,
57-
destinations: [
57+
destinations: match_array([
5858
{
5959
guid: route_in_org_dest_web.guid,
6060
app: {
@@ -77,7 +77,7 @@
7777
weight: route_in_org_dest_worker.weight,
7878
port: route_in_org_dest_worker.presented_port
7979
}
80-
],
80+
]),
8181
relationships: {
8282
space: {
8383
data: { guid: route_in_org.space.guid }
@@ -2554,7 +2554,7 @@
25542554
url: "#{route1.host}.#{route1.domain.name}#{route1.path}",
25552555
created_at: iso8601,
25562556
updated_at: iso8601,
2557-
destinations: [
2557+
destinations: match_array([
25582558
{
25592559
guid: route_mapping1.guid,
25602560
app: {
@@ -2566,7 +2566,7 @@
25662566
weight: route_mapping1.weight,
25672567
port: route_mapping1.presented_port
25682568
},
2569-
],
2569+
]),
25702570
relationships: {
25712571
space: {
25722572
data: { guid: route1.space.guid }
@@ -2598,7 +2598,7 @@
25982598
url: "#{route2.host}.#{route2.domain.name}#{route2.path}",
25992599
created_at: iso8601,
26002600
updated_at: iso8601,
2601-
destinations: [
2601+
destinations: match_array([
26022602
{
26032603
guid: route_mapping2.guid,
26042604
app: {
@@ -2610,7 +2610,7 @@
26102610
weight: route_mapping2.weight,
26112611
port: route_mapping2.presented_port
26122612
},
2613-
],
2613+
]),
26142614
relationships: {
26152615
space: {
26162616
data: { guid: route2.space.guid }

0 commit comments

Comments
 (0)