Skip to content

Commit 7d21e85

Browse files
committed
Fix tests: offline needs to be specified
1 parent 95713c5 commit 7d21e85

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

coderd/provisionerdaemons_test.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ func TestProvisionerDaemons(t *testing.T) {
146146
t.Run("Default limit", func(t *testing.T) {
147147
t.Parallel()
148148
ctx := testutil.Context(t, testutil.WaitMedium)
149-
daemons, err := templateAdminClient.OrganizationProvisionerDaemons(ctx, owner.OrganizationID, nil)
149+
daemons, err := templateAdminClient.OrganizationProvisionerDaemons(ctx, owner.OrganizationID, &codersdk.OrganizationProvisionerDaemonsOptions{
150+
Offline: true,
151+
})
150152
require.NoError(t, err)
151153
require.Len(t, daemons, 50)
152154
})
@@ -155,7 +157,8 @@ func TestProvisionerDaemons(t *testing.T) {
155157
t.Parallel()
156158
ctx := testutil.Context(t, testutil.WaitMedium)
157159
daemons, err := templateAdminClient.OrganizationProvisionerDaemons(ctx, owner.OrganizationID, &codersdk.OrganizationProvisionerDaemonsOptions{
158-
IDs: []uuid.UUID{pd1.ID, pd2.ID},
160+
IDs: []uuid.UUID{pd1.ID, pd2.ID},
161+
Offline: true,
159162
})
160163
require.NoError(t, err)
161164
require.Len(t, daemons, 2)
@@ -167,7 +170,8 @@ func TestProvisionerDaemons(t *testing.T) {
167170
t.Parallel()
168171
ctx := testutil.Context(t, testutil.WaitMedium)
169172
daemons, err := templateAdminClient.OrganizationProvisionerDaemons(ctx, owner.OrganizationID, &codersdk.OrganizationProvisionerDaemonsOptions{
170-
Tags: map[string]string{"count": "1"},
173+
Tags: map[string]string{"count": "1"},
174+
Offline: true,
171175
})
172176
require.NoError(t, err)
173177
require.Len(t, daemons, 1)
@@ -209,7 +213,8 @@ func TestProvisionerDaemons(t *testing.T) {
209213
t.Parallel()
210214
ctx := testutil.Context(t, testutil.WaitMedium)
211215
daemons, err := templateAdminClient.OrganizationProvisionerDaemons(ctx, owner.OrganizationID, &codersdk.OrganizationProvisionerDaemonsOptions{
212-
IDs: []uuid.UUID{pd2.ID},
216+
IDs: []uuid.UUID{pd2.ID},
217+
Offline: true,
213218
})
214219
require.NoError(t, err)
215220
require.Len(t, daemons, 1)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy