This repository was archived by the owner on Jul 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 2121 client kubernetes.Interface
2222 sshClient * SSHClient
2323 expectedMasters int // hint for tests to figure out how to fail or block on resources missing
24- namespace = fmt . Sprintf ( "bootkube-e2e-%x" , rand . Int31 ())
24+ namespace string
2525)
2626
27+ func init () {
28+ rand .Seed (time .Now ().UTC ().UnixNano ())
29+ namespace = fmt .Sprintf ("bootkube-e2e-%x" , rand .Int31 ())
30+ }
31+
2732// TestMain handles setup before all tests
2833func TestMain (m * testing.M ) {
2934 var kubeconfig = flag .String ("kubeconfig" , "../hack/quickstart/cluster/auth/kubeconfig" , "absolute path to the kubeconfig file" )
Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ func TestNetwork(t *testing.T) {
3131 // if absent skip this test
3232 if _ , err := client .ExtensionsV1beta1 ().DaemonSets ("kube-system" ).Get ("kube-calico" , metav1.GetOptions {}); err != nil {
3333 if apierrors .IsNotFound (err ) {
34- t .Skip ("skipping as kube-calico daemonset is not installed" )
34+ t .Skip ("kube-calico daemonset is not installed" )
3535 }
36- t .Fatalf ("error getting kube-calio daemonset: %v" , err )
36+ t .Fatalf ("error getting kube-calico daemonset: %v" , err )
3737 }
3838
3939 var nginx * testworkload.Nginx
You can’t perform that action at this time.
0 commit comments