mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* enable non-GOPATH testing Tweak the testlib package to support finding the root without assuming the folder name of the repository. Fixes: MM-19729 * fix web tests
16 lines
264 B
Go
16 lines
264 B
Go
package testlib
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestFindDir(t *testing.T) {
|
|
t.Run("find root", func(t *testing.T) {
|
|
path, found := findDir(root)
|
|
assert.True(t, found, "failed to find root")
|
|
assert.NotEmpty(t, path)
|
|
})
|
|
}
|