only run this testcase once
Each iteration takes ~12 minutes to run in GCP. I'm not convinced we
need multiple iterations for this particular test case.
@@ -54,13 +54,13 @@ func TestMCDToken(t *testing.T) {
func TestMCDeployed(t *testing.T) {
cs := framework.NewClientSet("")
- // TODO: bring this back to 10
- for i := 0; i < 3; i++ {
+ ctx := context.Background()
+
startTime := time.Now()
- mcadd := createMCToAddFile("add-a-file", fmt.Sprintf("/etc/mytestconf%d", i), "test")
+ mcadd := createMCToAddFile("add-a-file", "/etc/mytestconf", "test")
// create the dummy MC now
- _, err := cs.MachineConfigs().Create(context.TODO(), mcadd, metav1.CreateOptions{})
+ _, err := cs.MachineConfigs().Create(ctx, mcadd, metav1.CreateOptions{})
if err != nil {
t.Errorf("failed to create machine config %v", err)
}
@@ -78,7 +78,6 @@ func TestMCDeployed(t *testing.T) {
}
t.Logf("All nodes updated with %s (%s elapsed)", mcadd.Name, time.Since(startTime))
}
-}
func TestRunShared(t *testing.T) {
mcpName := "infra"
