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