From 17b17fc8bb690d1f6344e5af1c62b3b37166bc48 Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Sun, 15 Jan 2017 21:50:38 +0000 Subject: Add more context to errors --- server/auth/github/github_test.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'server/auth/github/github_test.go') diff --git a/server/auth/github/github_test.go b/server/auth/github/github_test.go index c0b26a4..b0c97d2 100644 --- a/server/auth/github/github_test.go +++ b/server/auth/github/github_test.go @@ -29,11 +29,9 @@ func TestNew(t *testing.T) { func TestNewEmptyOrganization(t *testing.T) { organization = "" - a := assert.New(t) - - _, err := newGithub() - a.EqualError(err, "github_opts organization and the users whitelist must not be both empty") - + if _, err := newGithub(); err == nil { + t.Error("creating a provider without an organization set should return an error") + } organization = "exampleorg" } -- cgit v1.2.3