influxdb/label
Simon Richardson 33a7add745
test(label): Invalid closure capture (#23353)
Whilst working on cloud labels, I noticed that the label storage test
isn't correctly capturing the testScenario. This is because t.Parallel()
is in use, so only the "delete" scenario will only ever be tested.

The following changes fix that, by capturing the testScenario in a local
variable so that the test function can use that correctly.

As a drive-by, I fixed the error referencing the wrong expectation.
2022-07-13 15:15:13 +01:00
..
error.go refactor: automated move of errors and id from root to kit (#21101) 2021-03-30 14:10:02 -04:00
http_client.go fix: more expressive errors (#22448) 2021-09-13 15:12:35 -04:00
http_handler.go fix: more expressive errors (#22448) 2021-09-13 15:12:35 -04:00
http_server.go fix: more expressive errors (#22448) 2021-09-13 15:12:35 -04:00
http_server_test.go build: upgrade to Go 1.18.1 (#23252) 2022-04-13 15:24:27 -05:00
middleware_auth.go fix: more expressive errors (#22448) 2021-09-13 15:12:35 -04:00
middleware_auth_test.go fix: more expressive errors (#22448) 2021-09-13 15:12:35 -04:00
middleware_logging.go fix: more expressive errors (#22448) 2021-09-13 15:12:35 -04:00
middleware_logging_test.go refactor: add new label package (#18078) 2020-05-21 11:30:19 -07:00
middleware_metrics.go fix: more expressive errors (#22448) 2021-09-13 15:12:35 -04:00
middleware_metrics_test.go fix: more expressive errors (#22448) 2021-09-13 15:12:35 -04:00
service.go fix: more expressive errors (#22448) 2021-09-13 15:12:35 -04:00
service_test.go refactor: move helper functions for setting up test stores into testing package (#22347) 2021-08-31 16:43:45 -04:00
storage.go fix: more expressive errors (#22448) 2021-09-13 15:12:35 -04:00
storage_label.go fix: more expressive errors (#22448) 2021-09-13 15:12:35 -04:00
storage_test.go test(label): Invalid closure capture (#23353) 2022-07-13 15:15:13 +01:00