mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Setup golangci-lint Github Action
This commit is contained in:
parent
9242350f0e
commit
6e2e2d1665
14 changed files with 52 additions and 66 deletions
|
@ -2,6 +2,8 @@
|
|||
// Use of this source code is governed by the Apache 2.0
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build integration
|
||||
|
||||
package tests
|
||||
|
||||
import (
|
||||
|
|
|
@ -212,7 +212,7 @@ func TestGetUserByID(t *testing.T) {
|
|||
func TestGetUserByUsername(t *testing.T) {
|
||||
username := getRandomUsername()
|
||||
client := miniflux.New(testBaseURL, testAdminUsername, testAdminPassword)
|
||||
user, err := client.CreateUser(username, testStandardPassword, false)
|
||||
_, err := client.CreateUser(username, testStandardPassword, false)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
@ -222,7 +222,7 @@ func TestGetUserByUsername(t *testing.T) {
|
|||
t.Fatal(`Should returns a 404`)
|
||||
}
|
||||
|
||||
user, err = client.UserByUsername(username)
|
||||
user, err := client.UserByUsername(username)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue