mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-26 07:21:27 +01:00
Remove minor version numbers from os versions for golden files for tests
This commit is contained in:
parent
2b4be24789
commit
8e7096cff8
@ -416,5 +416,6 @@ func GetOsVersion(t *testing.T) string {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return unix.ByteSliceToString(uts.Release[:])
|
||||
version := unix.ByteSliceToString(uts.Release[:])
|
||||
return strings.Split(version, ".")[0]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user