Skip to content

Commit

Permalink
github: bump to 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
changkun committed Jul 23, 2023
1 parent 5edcbae commit 6448432
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/midgard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- uses: actions/setup-go@v2
with:
stable: 'true'
go-version: '1.17.x'
go-version: '1.20.x'
- name: Build
run: |
go build
Expand Down
6 changes: 4 additions & 2 deletions internal/clipboard/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ func TestLocalClipboardImage(t *testing.T) {
want := img1.At(i, j)
got := img2.At(i, j)

if !reflect.DeepEqual(want, got) {
t.Logf("read data from clipbaord is inconsistent with previous written data, pix: (%d,%d), got: %+v, want: %+v", i, j, got, want)
wantR, wantG, wantB, wantA := want.RGBA()
gotR, gotG, gotB, gotA := got.RGBA()
if wantR != gotR || wantG != gotG || wantB != gotB || wantA != gotA {
t.Logf("read data from clipbaord is inconsistent with previous written data, pix: (%d,%d), got: %+v,%+v,%+v,%+v, want: %+v,%+v,%+v,%+v", i, j, gotR, gotG, gotB, gotA, wantR, wantG, wantB, wantA)
incorrect++
}
}
Expand Down

0 comments on commit 6448432

Please sign in to comment.