Commit 2c3dfde
committed
test: Use daemon OS instead of runtime OS in PullNever test
This fixes test failures on Windows runners running Linux containers.
The test was using runtime.GOOS which returns 'windows' on Windows hosts,
but the Docker daemon may be running Linux containers. Now we use the
daemon's actual OS type queried via docker.Info().
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>1 parent 3db739d commit 2c3dfde
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
| 744 | + | |
| 745 | + | |
744 | 746 | | |
745 | | - | |
| 747 | + | |
746 | 748 | | |
747 | 749 | | |
748 | 750 | | |
| |||
755 | 757 | | |
756 | 758 | | |
757 | 759 | | |
758 | | - | |
| 760 | + | |
759 | 761 | | |
760 | 762 | | |
761 | 763 | | |
| |||
0 commit comments