Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for token auth #67

Merged
merged 2 commits into from Mar 7, 2018
Merged

Add test for token auth #67

merged 2 commits into from Mar 7, 2018

Conversation

nightfury1204
Copy link
Contributor

No description provided.

if err != nil {
t.Error(err)
func stringArraytoBytes(in []string) []byte {
out := ""
Copy link
Contributor

@tamalsaha tamalsaha Mar 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[]byte(strings.Join(in, "\n")) ?

srv := Server{}

for pos, testData := range dataset {
t.Run(fmt.Sprintf("scenario 1 testcase #%v", pos), func(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Give it a descriptive name so we know what you are testing here

@tamalsaha tamalsaha merged commit 0a0d1c7 into master Mar 7, 2018
@tamalsaha tamalsaha deleted the token-auth-test branch March 7, 2018 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants