1
0
mirror of https://github.com/sjwhitworth/golearn.git synced 2025-04-26 13:49:14 +08:00

base: correct some non-deterministic serialisation test behaviour

This commit is contained in:
Richard Townsend 2015-01-15 22:45:05 +00:00
parent dbf1c9a6b3
commit a250e99644

View File

@ -16,7 +16,7 @@ func TestSerializeToCSV(t *testing.T) {
So(err, ShouldBeNil)
Convey("Saving the instances to CSV...", func() {
f, err := ioutil.TempFile("", "instTmp")
f, err := ioutil.TempFile("", "instTmpCSV")
So(err, ShouldBeNil)
err = SerializeInstancesToCSV(inst, f.Name())
So(err, ShouldBeNil)
@ -35,7 +35,7 @@ func TestSerializeToFile(t *testing.T) {
So(err, ShouldBeNil)
Convey("Dumping to file...", func() {
f, err := ioutil.TempFile("", "instTmp")
f, err := ioutil.TempFile("", "instTmpF")
So(err, ShouldBeNil)
err = SerializeInstances(inst, f)
So(err, ShouldBeNil)