Skip to content

Commit

Permalink
re
Browse files Browse the repository at this point in the history
  • Loading branch information
callthingsoff committed Sep 22, 2023
1 parent 4e8dcdb commit be865d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/database/sql/convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func conversionTests() []conversionTest {
{s: "256", d: &scanuint8, wanterr: "converting driver.Value type string (\"256\") to a uint8: value out of range"},
{s: "256", d: &scanuint16, wantuint: 256},
{s: "-1", d: &scanint, wantint: -1},
{s: "foo", d: &scanint, wanterr: "converting driver.Value type string (\"foo\") to an int: invalid syntax"},
{s: "foo", d: &scanint, wanterr: "converting driver.Value type string (\"foo\") to a int: invalid syntax"},

// int64 to smaller integers
{s: int64(5), d: &scanuint8, wantuint: 5},
Expand Down
4 changes: 2 additions & 2 deletions src/os/os_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,9 +581,9 @@ func TestStatLxSymLink(t *testing.T) {
}
if m := fi.Mode(); m&fs.ModeSymlink != 0 {
// This can happen depending on newer WSL versions when running as admin or in developer mode.
t.Skip("skipping: WSL created reparse tag IO_REPARSE_TAG_SYMLINK instead of an IO_REPARSE_TAG_LX_SYMLINK")
t.Skip("skipping: WSL created reparse tag IO_REPARSE_TAG_SYMLINK instead of a IO_REPARSE_TAG_LX_SYMLINK")
}
// Stat'ing an IO_REPARSE_TAG_LX_SYMLINK from outside WSL always return ERROR_CANT_ACCESS_FILE.
// Stat'ing a IO_REPARSE_TAG_LX_SYMLINK from outside WSL always return ERROR_CANT_ACCESS_FILE.
// We check this condition to validate that os.Stat has tried to follow the link.
_, err = os.Stat(link)
const ERROR_CANT_ACCESS_FILE = syscall.Errno(1920)
Expand Down

0 comments on commit be865d6

Please sign in to comment.