Skip to content

Commit 7e7f7d0

Browse files
committed
Skip scheduler tests in slim mode
Signed-off-by: joshvanl <[email protected]>
1 parent 9f02e1f commit 7e7f7d0

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

tests/apps/scheduler/app.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ func main() {
4545
mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {})
4646

4747
go func() {
48+
log.Println("Waiting for registration call...")
4849
<-regCh
50+
log.Println("Registration call received")
4951
register(ctx)
5052
}()
5153

@@ -55,10 +57,13 @@ func main() {
5557
func register(ctx context.Context) {
5658
log.Printf("Registering jobs, reminders and workflows")
5759

58-
cl, err := client.NewClientWithAddress("127.0.0.1:3510")
60+
addr := "127.0.0.1:3510"
61+
log.Printf("Creating client to %s", addr)
62+
cl, err := client.NewClientWithAddress(addr)
5963
if err != nil {
6064
log.Fatal(err)
6165
}
66+
log.Println("Client created")
6267

6368
ds := time.Now().Format(time.RFC3339)
6469

tests/e2e/standalone/scheduler_test.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ import (
3232
)
3333

3434
func TestSchedulerList(t *testing.T) {
35+
if isSlimMode() {
36+
t.Skip("skipping scheduler tests in slim mode")
37+
}
38+
3539
cmdUninstall()
3640
ensureDaprInstallation(t)
3741
t.Cleanup(func() {
@@ -180,6 +184,10 @@ func TestSchedulerList(t *testing.T) {
180184
}
181185

182186
func TestSchedulerGet(t *testing.T) {
187+
if isSlimMode() {
188+
t.Skip("skipping scheduler tests in slim mode")
189+
}
190+
183191
cmdUninstall()
184192
ensureDaprInstallation(t)
185193
t.Cleanup(func() {
@@ -279,6 +287,10 @@ func TestSchedulerGet(t *testing.T) {
279287
}
280288

281289
func TestSchedulerDelete(t *testing.T) {
290+
if isSlimMode() {
291+
t.Skip("skipping scheduler tests in slim mode")
292+
}
293+
282294
cmdUninstall()
283295
ensureDaprInstallation(t)
284296
t.Cleanup(func() {
@@ -347,6 +359,10 @@ func TestSchedulerDelete(t *testing.T) {
347359
}
348360

349361
func TestSchedulerDeleteAllAll(t *testing.T) {
362+
if isSlimMode() {
363+
t.Skip("skipping scheduler tests in slim mode")
364+
}
365+
350366
cmdUninstall()
351367
ensureDaprInstallation(t)
352368
t.Cleanup(func() {
@@ -381,6 +397,10 @@ func TestSchedulerDeleteAllAll(t *testing.T) {
381397
}
382398

383399
func TestSchedulerDeleteAll(t *testing.T) {
400+
if isSlimMode() {
401+
t.Skip("skipping scheduler tests in slim mode")
402+
}
403+
384404
cmdUninstall()
385405
ensureDaprInstallation(t)
386406
t.Cleanup(func() {
@@ -438,6 +458,10 @@ func TestSchedulerDeleteAll(t *testing.T) {
438458
}
439459

440460
func TestSchedulerExportImport(t *testing.T) {
461+
if isSlimMode() {
462+
t.Skip("skipping scheduler tests in slim mode")
463+
}
464+
441465
cmdUninstall()
442466
ensureDaprInstallation(t)
443467
t.Cleanup(func() {

0 commit comments

Comments
 (0)