mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-13 16:57:23 +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)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return unix.ByteSliceToString(uts.Release[:])
|
version := unix.ByteSliceToString(uts.Release[:])
|
||||||
|
return strings.Split(version, ".")[0]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user