Skip to content

Commit 0d5031e

Browse files
skipper: enable skipper_test package (zalando#2419)
* removes unexported testOptions * exports run with shutdown channels for tests Signed-off-by: Alexander Yastrebov <[email protected]>
1 parent 171625c commit 0d5031e

5 files changed

+580
-553
lines changed

export_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package skipper
2+
3+
var RunWithShutdown = run

metricsinit_test.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ func TestInitOrderAndDefault(t *testing.T) {
4646
done := make(chan struct{})
4747
go func() {
4848
options := Options{
49-
Address: fmt.Sprintf(":%d", port),
50-
SupportListener: fmt.Sprintf(":%d", supportPort),
51-
EnableRuntimeMetrics: true,
52-
EnableSwarm: true,
53-
SwarmRedisURLs: []string{fmt.Sprintf("localhost:%d", redisPort)},
54-
EnableRatelimiters: true,
55-
testOptions: testOptions{redisConnMetricsInterval: ringMetricsUpdatePeriod},
49+
Address: fmt.Sprintf(":%d", port),
50+
SupportListener: fmt.Sprintf(":%d", supportPort),
51+
EnableRuntimeMetrics: true,
52+
EnableSwarm: true,
53+
SwarmRedisURLs: []string{fmt.Sprintf("localhost:%d", redisPort)},
54+
EnableRatelimiters: true,
55+
SwarmRedisConnMetricsInterval: ringMetricsUpdatePeriod,
5656
}
5757

5858
tornDown := make(chan struct{})

0 commit comments

Comments
 (0)