Fix linter issues in agent-run packages
Replace the single-case switch in the agent-run handler with an if, and add the blank lines wsl_v5 requires around statements in the approval checkpoint, worker tests, and policy-set registration. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -151,6 +151,7 @@ func TestWorker_StopAndResume(t *testing.T) {
|
||||
t,
|
||||
func() bool {
|
||||
r, err := tryLoadAgentRun(client, run.ID)
|
||||
|
||||
return err == nil &&
|
||||
r.Status == coredata.AgentRunStatusPending &&
|
||||
r.Checkpoint != nil
|
||||
@@ -558,6 +559,7 @@ func TestWorker_StopAndResumeAcrossHandoff(t *testing.T) {
|
||||
t,
|
||||
func() bool {
|
||||
r, err := tryLoadAgentRun(client, run.ID)
|
||||
|
||||
return err == nil &&
|
||||
r.Status == coredata.AgentRunStatusPending &&
|
||||
r.Checkpoint != nil
|
||||
@@ -690,6 +692,7 @@ func TestWorker_StopAndResumeNestedSubAgent(t *testing.T) {
|
||||
t,
|
||||
func() bool {
|
||||
r, err := tryLoadAgentRun(client, run.ID)
|
||||
|
||||
return err == nil &&
|
||||
r.Status == coredata.AgentRunStatusPending &&
|
||||
r.Checkpoint != nil
|
||||
|
||||
Reference in New Issue
Block a user