Skip to content

Commit

Permalink
cleanup previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Fuller committed May 17, 2023
1 parent 65aafaa commit 79b0b0d
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions command/v7/logs_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,17 +323,13 @@ var _ = Describe("logs command", func() {
errorStream := make(chan error)

go func() {
for {
logStream <- *sharedaction.NewLogMessage("Here are some staging logs!", "OUT", time.Now(), sharedaction.StagingLog, "sourceInstance") //TODO: is it ok to leave staging logs here?
logStream <- *sharedaction.NewLogMessage("Here are some other staging logs!", "OUT", time.Now(), sharedaction.StagingLog, "sourceInstance")
time.Sleep(100 * time.Millisecond)
close(logStream)
close(errorStream)
return
}
time.Sleep(100 * time.Millisecond)
close(logStream)
close(errorStream)
return
}()

return logStream, errorStream, func() {}, v7action.Warnings{"some-warning-1", "some-warning-2"}, nil
return logStream, errorStream, func() {}, v7action.Warnings{}, nil
}
fakeActor.ScheduleTokenRefreshStub = func(
after func(time.Duration) <-chan time.Time,
Expand Down

0 comments on commit 79b0b0d

Please sign in to comment.