Skip to content

Commit

Permalink
filter out unwanted fields from test resuts
Browse files Browse the repository at this point in the history
Updated local test consul to 1.9, it added a few fields I need to filter
in our tests. Really need to switch to an include filter (vs. current
exclude filter).
  • Loading branch information
eikenb committed Feb 20, 2021
1 parent 70343e8 commit c8372a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dependency/consul_common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func filter(data map[string]string, remove []string) map[string]string {
func filterVersionMeta(meta map[string]string) map[string]string {
filteredMeta := []string{"raft_version", "serf_protocol_current",
"serf_protocol_min", "serf_protocol_max", "version",
"non_voter", "read_replica",
}
return filter(meta, filteredMeta)
}
Expand Down

0 comments on commit c8372a0

Please sign in to comment.