From 96b366cda201c3a707e8b9f84bab1fbe7759728e Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 31 May 2018 12:05:44 -0700 Subject: [PATCH] Disable schedulers for TestHTTP_AllocSnapshot_Atomic --- command/agent/alloc_endpoint_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/command/agent/alloc_endpoint_test.go b/command/agent/alloc_endpoint_test.go index 62892da7e..965efe1d4 100644 --- a/command/agent/alloc_endpoint_test.go +++ b/command/agent/alloc_endpoint_test.go @@ -435,7 +435,10 @@ func TestHTTP_AllocSnapshot_WithMigrateToken(t *testing.T) { // snapshotting a valid tar is not returned. func TestHTTP_AllocSnapshot_Atomic(t *testing.T) { t.Parallel() - httpTest(t, nil, func(s *TestAgent) { + httpTest(t, func(c *Config) { + // Disable the schedulers + c.Server.NumSchedulers = 0 + }, func(s *TestAgent) { // Create an alloc state := s.server.State() alloc := mock.Alloc()