main: move pomerium main code to an internal cmd package so that it can be called directly from tests (#734)

* main: move pomerium main code to an internal cmd package so that it can be called directly from tests

* fix test
This commit is contained in:
Caleb Doxsey 2020-05-19 11:17:40 -06:00 committed by GitHub
parent 095e06294a
commit e30e717942
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 259 additions and 269 deletions

View file

@ -15,7 +15,7 @@ func TestRegisterTracing(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if err := RegisterTracing(tt.opts); (err != nil) != tt.wantErr {
if _, err := RegisterTracing(tt.opts); (err != nil) != tt.wantErr {
t.Errorf("RegisterTracing() error = %v, wantErr %v", err, tt.wantErr)
}
})