Skip to content

Commit aa62ce6

Browse files
committed
Run go fmt
1 parent fa209aa commit aa62ce6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

internal/worker/worker_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ func newTestLogger() *testLogger {
3636
tl := &testLogger{
3737
logLines: make([]logEntry, 0),
3838
}
39-
39+
4040
handler := &testHandler{tl: tl}
4141
tl.logger = slog.New(handler)
42-
42+
4343
return tl
4444
}
4545

4646
func (tl *testLogger) hasErrorLog(message string) bool {
4747
tl.mu.RLock()
4848
defer tl.mu.RUnlock()
49-
49+
5050
for _, entry := range tl.logLines {
5151
if entry.level == slog.LevelError && strings.Contains(entry.message, message) {
5252
return true
@@ -58,7 +58,7 @@ func (tl *testLogger) hasErrorLog(message string) bool {
5858
func (tl *testLogger) errorLogCount() int {
5959
tl.mu.RLock()
6060
defer tl.mu.RUnlock()
61-
61+
6262
count := 0
6363
for _, entry := range tl.logLines {
6464
if entry.level == slog.LevelError {
@@ -79,19 +79,19 @@ func (h *testHandler) Enabled(ctx context.Context, level slog.Level) bool {
7979
func (h *testHandler) Handle(ctx context.Context, record slog.Record) error {
8080
h.tl.mu.Lock()
8181
defer h.tl.mu.Unlock()
82-
82+
8383
attrs := make(map[string]interface{})
8484
record.Attrs(func(attr slog.Attr) bool {
8585
attrs[attr.Key] = attr.Value.Any()
8686
return true
8787
})
88-
88+
8989
h.tl.logLines = append(h.tl.logLines, logEntry{
9090
level: record.Level,
9191
message: record.Message,
9292
attrs: attrs,
9393
})
94-
94+
9595
return nil
9696
}
9797

workflow/activity_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ func Test_executeActivity_NameAsString(t *testing.T) {
8181

8282
require.NoError(t, c.Error())
8383
require.True(t, c.Finished())
84-
}
84+
}

0 commit comments

Comments
 (0)