Skip to content

Commit 5969a13

Browse files
committed
Integration test tweaks
1 parent 9280509 commit 5969a13

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

test/integration/cluster_logs_test.go

+9
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ func testClusterLogs(t *testing.T) {
3838
logWords := []string{"minikube", ".go"}
3939
for _, logWord := range logWords {
4040
if !strings.Contains(logsCmdOutput, logWord) {
41+
debugCmds := []string{
42+
"journalctl --verify",
43+
"journalctl",
44+
"systemctl status",
45+
"systemctl status systemd-journald",
46+
}
47+
for _, cmd := range debugCmds {
48+
t.Logf("Command: %s\nOutput: %s", cmd, minikubeRunner.RunCommand(cmd, false))
49+
}
4150
t.Fatalf("Error in logsCmdOutput, expected to find: %s. Output: %s", logWord, logsCmdOutput)
4251
}
4352
}

test/integration/persistence_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func TestPersistence(t *testing.T) {
5757
return &commonutil.RetriableError{Err: fmt.Errorf("Pod %s is not ready yet.", podName)}
5858
}
5959

60-
if err := commonutil.RetryAfter(20, checkPod, 6*time.Second); err != nil {
60+
if err := commonutil.RetryAfter(100, checkPod, 6*time.Second); err != nil {
6161
t.Fatalf("Error checking the status of pod %s. Err: %s", podName, err)
6262
}
6363

0 commit comments

Comments
 (0)