math-optim/run_test.go

24 lines
408 B
Go
Raw Normal View History

2023-01-12 23:35:51 +01:00
// Copyright 2023 wanderer <a_mirre at utb dot cz>
2022-07-18 23:12:33 +02:00
// SPDX-License-Identifier: GPL-3.0-or-later
package main
import (
"flag"
"testing"
)
2022-07-18 23:12:33 +02:00
func TestRun(t *testing.T) {
2022-08-03 17:39:51 +02:00
t.Log("call run() (TODO: improve this test)")
timeout := "1m10s"
t.Log("increase test timeout to", timeout)
if err := flag.Set("test.timeout", timeout); err != nil {
t.Errorf("failed to set timeout to %s", timeout)
}
2022-07-18 23:12:33 +02:00
run()
}