kubernetes/pkg/util
Claudiu Belu 9f95b7b18c unittests: Fixes unit tests for Windows (part 3)
Currently, there are some unit tests that are failing on Windows due to
various reasons:

- paths not properly joined (filepath.Join should be used).
- Proxy Mode IPVS not supported on Windows.
- DeadlineExceeded can occur when trying to read data from an UDP
  socket. This can be used to detect whether the port was closed or not.
- In Windows, with long file name support enabled, file names can have
  up to 32,767 characters. In this case, the error
  windows.ERROR_FILENAME_EXCED_RANGE will be encountered instead.
- files not closed, which means that they cannot be removed / renamed.
- time.Now() is not as precise on Windows, which means that 2
  consecutive calls may return the same timestamp.
- path.Base() will return the same path. filepath.Base() should be used
  instead.
- path.Join() will always join the paths with a / instead of the OS
  specific separator. filepath.Join() should be used instead.
2022-10-21 19:25:48 +03:00
..
async apply gofmt 2021-12-17 17:35:09 -05:00
bandwidth Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
config fix goroutine leaks in TestConfigurationChannels 2022-01-10 19:51:16 +08:00
conntrack fix:handle error and remove Redundant type conversion 2022-07-19 11:30:46 +08:00
coverage pkg/util/coverage: update fakeTestDeps impl 2022-08-25 17:23:49 -07:00
env hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
filesystem remove fakefs to drop spf13/afero dependency 2021-06-24 09:51:34 -04:00
flag fix:handle error and remove Redundant type conversion 2022-07-19 11:30:46 +08:00
flock generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
goroutinemap fix:handle error and remove Redundant type conversion 2022-07-19 11:30:46 +08:00
hash hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
interrupt hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
ipconfig hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
ipset Merge pull request #112182 from dcbw/pkg-util-ipset-sig-net-approvers 2022-09-01 20:08:04 -07:00
iptables Merge pull request #110328 from danwinship/iptables-counters 2022-06-29 08:06:06 -07:00
ipvs Generate and format files 2022-07-26 13:14:05 -04:00
labels hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
maps hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
node update test func for pkg/util/node 2022-07-07 10:45:45 +08:00
oom generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
parsers hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
pod Introduction of a pod condition type indicating disruption. Its reason field indicates the reason: 2022-08-02 11:12:16 +02:00
procfs generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
removeall unittests: Fixes unit tests for Windows (part 3) 2022-10-21 19:25:48 +03:00
rlimit generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
slice add unit test coverage for pkg/util/slice 2022-06-30 15:21:37 +08:00
tail Improve test coverage: add unit tests TestReadAtMost in pkg/util/tail 2022-02-11 10:20:42 +08:00
taints Improve test readability by fixing previous code variables that could easily be changed and 2022-09-16 17:23:35 +08:00
tolerations hack/update-bazel.sh 2021-02-28 15:17:29 -08:00