10 // MakeArvadosClient returns an error if this env var isn't
11 // available as a default token (even if we explicitly set a
12 // different token before doing anything with the client). We
13 // set this dummy value during init so it doesn't clobber the
14 // one used by "run test servers".
15 if os.Getenv("ARVADOS_API_TOKEN") == "" {
16 os.Setenv("ARVADOS_API_TOKEN", "xxx")
22 if os.Getenv("ARVADOS_API_HOST") == "" {
23 log.Fatal("ARVADOS_API_HOST environment variable must be set.")
26 if err := srv.Start(); err != nil {
29 log.Println("Listening at", srv.Addr)
30 if err := srv.Wait(); err != nil {