Skip to content

Modern Docker Management, Designed for Everyone

chore: cleanup workflows errors

Kyle Mendell0e48f69f2901
diff --git a/backend/internal/utils/edge/server_test.go b/backend/internal/utils/edge/server_test.go
index 65d06c4b9..3a6321458 100644
--- a/backend/internal/utils/edge/server_test.go
+++ b/backend/internal/utils/edge/server_test.go
@@ -60,9 +60,12 @@ func TestTunnelServer_HandleConnect(t *testing.T) {
// Check registry
reg := GetRegistry()
- tunnel, ok := reg.Get("env-connected")
- assert.True(t, ok)
- assert.NotNil(t, tunnel)
+ var tunnel *AgentTunnel
+ require.Eventually(t, func() bool {
+ var ok bool
+ tunnel, ok = reg.Get("env-connected")
+ return ok && tunnel != nil
+ }, time.Second, 10*time.Millisecond)
select {
case <-statusCallbackCalled:
diff --git a/tests/spec/edge-agent.spec.ts b/tests/spec/edge-agent.spec.ts
index d603aec20..884fae32f 100644
--- a/tests/spec/edge-agent.spec.ts
+++ b/tests/spec/edge-agent.spec.ts
@@ -36,7 +36,6 @@ test.describe("Edge Agent Environment", () => {
test("should create an edge agent environment and show deployment snippets", async ({ page }) => {
const environmentName = `edge-agent-${Date.now().toString().slice(-6)}`;
- const expectedApiUrl = `edge://${slugifyEdgeName(environmentName)}`;
let createdEnvironmentId: string | null = null;
await page.route("**/api/environments", async (route) => {
diff --git a/types/jobschedule/jobschedule.go b/types/jobschedule/jobschedule.go
index 931ff3a89..9bf3cacc2 100644
--- a/types/jobschedule/jobschedule.go
+++ b/types/jobschedule/jobschedule.go
@@ -23,18 +23,18 @@ type Update struct {
// JobStatus represents the current status and metadata for a background job.
type JobStatus struct {
- ID string `json:"id"`
- Name string `json:"name"`
- Description string `json:"description"`
- Category string `json:"category"`
- Schedule string `json:"schedule"`
- NextRun *time.Time `json:"nextRun,omitempty"`
- Enabled bool `json:"enabled"`
- ManagerOnly bool `json:"managerOnly"`
- IsContinuous bool `json:"isContinuous"`
- CanRunManually bool `json:"canRunManually"`
- Prerequisites []JobPrerequisite `json:"prerequisites"`
- SettingsKey string `json:"settingsKey,omitempty"`
+ ID string `json:"id"`
+ Name string `json:"name"`
+ Description string `json:"description"`
+ Category string `json:"category"`
+ Schedule string `json:"schedule"`
+ NextRun *time.Time `json:"nextRun,omitempty"`
+ Enabled bool `json:"enabled"`
+ ManagerOnly bool `json:"managerOnly"`
+ IsContinuous bool `json:"isContinuous"`
+ CanRunManually bool `json:"canRunManually"`
+ Prerequisites []JobPrerequisite `json:"prerequisites"`
+ SettingsKey string `json:"settingsKey,omitempty"`
}
// JobPrerequisite represents a requirement that must be met for a job to run.