goconvey icon indicating copy to clipboard operation
goconvey copied to clipboard

web/server/watch unit tests are failing by 1

Open nim-nim opened this issue 7 years ago • 3 comments

golang-github-jtolds-gls-devel.noarch 0-0.10.git9a4a02d.fc27 golang-github-smartystreets-assertions-devel.noarch 1.8.0-1.fc28.llt golang-golangorg-net-devel.noarch 0-0.40.git1c05540.fc28.llt golang-golangorg-text-devel.noarch 0-0.21.git3bd178b.fc28

Exécution_de(%check) : /bin/sh -e /var/tmp/rpm-tmp.5OAobM

umask 022
cd /builddir/build/BUILD
cd goconvey-1.6.3
++ pwd
GO_BUILD_PATH=/builddir/build/BUILD/goconvey-1.6.3/_build
++ dirname /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey
install -m 0755 -vd /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets
install: creating directory '/builddir/build/BUILD/goconvey-1.6.3/_build'
install: creating directory '/builddir/build/BUILD/goconvey-1.6.3/_build/src'
install: creating directory '/builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com'
install: creating directory '/builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets'
ln -fs /builddir/build/BUILD/goconvey-1.6.3 /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey
install -m 0755 -vd _bin
install: creating directory '_bin'
export GOPATH=/builddir/build/BUILD/goconvey-1.6.3/_build:/usr/share/gocode
GOPATH=/builddir/build/BUILD/goconvey-1.6.3/_build:/usr/share/gocode
++ find . -iname '*.go' -exec dirname '{}' ';'
++ sort
++ sed 's+^./++'
++ uniq
for sub in $(find . -iname '*.go' -exec dirname '{}' ;|sort|uniq|sed s'+^./++')
process=true
declare -a 'excludes=(examples)'
Testing .…
~/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey ~/build/BUILD/goconvey-1.6.3
for exclude in "${excludes[@]}"
[[ . == examples ]]
'[' true = true ']'
echo 'Testing .…'
pushd /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/.
go test -compiler gc -ldflags ''
? github.com/smartystreets/goconvey [no test files]
popd
~/build/BUILD/goconvey-1.6.3
Testing convey…
~/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/convey ~/build/BUILD/goconvey-1.6.3
for sub in $(find . -iname '*.go' -exec dirname '{}' ;|sort|uniq|sed s'+^./++')
process=true
declare -a 'excludes=(examples)'
for exclude in "${excludes[@]}"
[[ convey == examples ]]
'[' true = true ']'
echo 'Testing convey…'
pushd /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/convey
go test -compiler gc -ldflags ''
PASS
ok github.com/smartystreets/goconvey/convey 0.027s
popd
~/build/BUILD/goconvey-1.6.3
Testing convey/gotest…
for sub in $(find . -iname '*.go' -exec dirname '{}' ;|sort|uniq|sed s'+^./++')
process=true
declare -a 'excludes=(examples)'
for exclude in "${excludes[@]}"
[[ convey/gotest == examples ]]
'[' true = true ']'
echo 'Testing convey/gotest…'
pushd /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/convey/gotest
go test -compiler gc -ldflags ''
~/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/convey/gotest ~/build/BUILD/goconvey-1.6.3
PASS
testing: warning: no tests to run
ok github.com/smartystreets/goconvey/convey/gotest 0.003s
popd
~/build/BUILD/goconvey-1.6.3
Testing convey/reporting…
for sub in $(find . -iname '*.go' -exec dirname '{}' ;|sort|uniq|sed s'+^./++')
process=true
declare -a 'excludes=(examples)'
for exclude in "${excludes[@]}"
[[ convey/reporting == examples ]]
'[' true = true ']'
echo 'Testing convey/reporting…'
pushd /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/convey/reporting
go test -compiler gc -ldflags ''
~/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/convey/reporting ~/build/BUILD/goconvey-1.6.3
PASS
ok github.com/smartystreets/goconvey/convey/reporting 0.003s
popd
~/build/BUILD/goconvey-1.6.3
for sub in $(find . -iname '*.go' -exec dirname '{}' ;|sort|uniq|sed s'+^./++')
process=true
declare -a 'excludes=(examples)'
for exclude in "${excludes[@]}"
[[ examples == examples ]]
process=false
break
'[' false = true ']'
for sub in $(find . -iname '*.go' -exec dirname '{}' ;|sort|uniq|sed s'+^./++')
process=true
declare -a 'excludes=(examples)'
for exclude in "${excludes[@]}"
[[ web/server/api == examples ]]
'[' true = true ']'
echo 'Testing web/server/api…'
pushd /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/api
Testing web/server/api…
~/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/api ~/build/BUILD/goconvey-1.6.3
go test -compiler gc -ldflags ''
.........S.SSS..S.S
13 total assertions (one or more sections skipped)

PASS ok github.com/smartystreets/goconvey/web/server/api 0.211s

popd
~/build/BUILD/goconvey-1.6.3
Testing web/server/contract…
for sub in $(find . -iname '*.go' -exec dirname '{}' ;|sort|uniq|sed s'+^./++')
process=true
declare -a 'excludes=(examples)'
for exclude in "${excludes[@]}"
[[ web/server/contract == examples ]]
'[' true = true ']'
echo 'Testing web/server/contract…'
pushd /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/contract
go test -compiler gc -ldflags ''
~/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/contract ~/build/BUILD/goconvey-1.6.3
PASS
testing: warning: no tests to run
ok github.com/smartystreets/goconvey/web/server/contract 0.006s
popd
~/build/BUILD/goconvey-1.6.3
Testing web/server/executor…
for sub in $(find . -iname '*.go' -exec dirname '{}' ;|sort|uniq|sed s'+^./++')
process=true
declare -a 'excludes=(examples)'
for exclude in "${excludes[@]}"
[[ web/server/executor == examples ]]
'[' true = true ']'
echo 'Testing web/server/executor…'
pushd /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/executor
go test -compiler gc -ldflags ''
~/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/executor ~/build/BUILD/goconvey-1.6.3
PASS
ok github.com/smartystreets/goconvey/web/server/executor 0.006s
popd
~/build/BUILD/goconvey-1.6.3
Testing web/server/messaging…
for sub in $(find . -iname '*.go' -exec dirname '{}' ;|sort|uniq|sed s'+^./++')
process=true
declare -a 'excludes=(examples)'
for exclude in "${excludes[@]}"
[[ web/server/messaging == examples ]]
'[' true = true ']'
echo 'Testing web/server/messaging…'
pushd /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/messaging
go test -compiler gc -ldflags ''
~/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/messaging ~/build/BUILD/goconvey-1.6.3
testing: warning: no tests to run
PASS
ok github.com/smartystreets/goconvey/web/server/messaging 0.002s
popd
~/build/BUILD/goconvey-1.6.3
Testing web/server/parser…
for sub in $(find . -iname '*.go' -exec dirname '{}' ;|sort|uniq|sed s'+^./++')
process=true
declare -a 'excludes=(examples)'
for exclude in "${excludes[@]}"
[[ web/server/parser == examples ]]
'[' true = true ']'
echo 'Testing web/server/parser…'
pushd /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/parser
go test -compiler gc -ldflags ''
~/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/parser ~/build/BUILD/goconvey-1.6.3
...
3 total assertions

PASS ok github.com/smartystreets/goconvey/web/server/parser 0.008s

popd
~/build/BUILD/goconvey-1.6.3
Testing web/server/system…
for sub in $(find . -iname '*.go' -exec dirname '{}' ;|sort|uniq|sed s'+^./++')
process=true
declare -a 'excludes=(examples)'
for exclude in "${excludes[@]}"
[[ web/server/system == examples ]]
'[' true = true ']'
echo 'Testing web/server/system…'
pushd /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/system
go test -compiler gc -ldflags ''
~/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/system ~/build/BUILD/goconvey-1.6.3
.......
7 total assertions

....2017/10/20 01:09:31.515462 shell.go:94: Please run goconvey from within $GOPATH/src (also, symlinks might be problematic). Output and Error: This is a wacky error This happens when running goconvey outside your $GOPATH (symlinked code). .2017/10/20 01:09:31.515758 shell.go:102: Coverage output: ok 2017/10/20 01:09:31.515770 shell.go:104: Run without coverage .2017/10/20 01:09:31.515965 shell.go:102: Coverage output: PASS ok github.com/smartystreets/goconvey/examples 0.012s 2017/10/20 01:09:31.515972 shell.go:104: Run without coverage .. 15 total assertions

2017/10/20 01:09:31.516115 shell.go:102: Coverage output: ok 2017/10/20 01:09:31.516121 shell.go:104: Run without coverage ... 18 total assertions

PASS ok github.com/smartystreets/goconvey/web/server/system 0.498s

popd
~/build/BUILD/goconvey-1.6.3
Testing web/server/watch…
for sub in $(find . -iname '*.go' -exec dirname '{}' ;|sort|uniq|sed s'+^./++')
process=true
declare -a 'excludes=(examples)'
for exclude in "${excludes[@]}"
[[ web/server/watch == examples ]]
'[' true = true ']'
echo 'Testing web/server/watch…'
pushd /builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/watch
go test -compiler gc -ldflags ''
~/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/watch ~/build/BUILD/goconvey-1.6.3
...
3 total assertions

... 6 total assertions

... 9 total assertions

... 12 total assertions

... 15 total assertions

... 18 total assertions

... 21 total assertions

... 24 total assertions

... 27 total assertions

... 30 total assertions

... 33 total assertions

... 36 total assertions

... 39 total assertions

... 42 total assertions

...... 48 total assertions

...... 54 total assertions

.. 56 total assertions

. 57 total assertions

xxxx.... Failures:

/builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/watch/integration_test.go
Line 82:
Expected: '1'
Actual: '0'
(Should be equal)

/builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/watch/integration_test.go
Line 96:
Expected: '2'
Actual: '1'
(Should be equal)

/builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/watch/integration_test.go
Line 113:
Expected: '1'
Actual: '0'
(Should be equal)

/builddir/build/BUILD/goconvey-1.6.3/_build/src/github.com/smartystreets/goconvey/web/server/watch/integration_test.go
Line 129:
Expected: '3'
Actual: '2'
(Should be equal)

65 total assertions

--- FAIL: TestWatcher (4.52s) integration_test.go:27: 2017/10/20 01:09:32.342629 integration.go:101: Stopping the watcher... 2017/10/20 01:09:32.343126 integration.go:97: Gathering folders for immediate execution... 2017/10/20 01:09:32.343556 integration.go:101: Stopping the watcher... 2017/10/20 01:09:32.343950 integration.go:75: Ignoring specified folders 2017/10/20 01:09:32.343970 integration.go:163: Currently ignored folders: map[/tmp/goconvey521582753/integration_testing/sub:{}] 2017/10/20 01:09:32.344233 integration.go:82: Reinstating specified folders 2017/10/20 01:09:32.344451 integration.go:101: Stopping the watcher... 2017/10/20 01:09:32.344762 integration.go:70: Adjusting root... 2017/10/20 01:09:32.344971 integration.go:70: Adjusting root... 2017/10/20 01:09:32.345324 integration.go:101: Stopping the watcher... 2017/10/20 01:09:32.345684 integration.go:106: Unrecognized command from server: UNKNOWN INSTRUCTION 2017/10/20 01:09:32.345925 integration.go:122: File system state modified, publishing current folders... 0 3016909361 2017/10/20 01:09:32.596087 integration.go:101: Stopping the watcher... 2017/10/20 01:09:32.596782 integration.go:122: File system state modified, publishing current folders... 0 3016909361 2017/10/20 01:09:33.852234 integration.go:122: File system state modified, publishing current folders... 3016909361 3016909362 2017/10/20 01:09:34.604778 integration.go:101: Stopping the watcher... 2017/10/20 01:09:34.606088 integration.go:122: File system state modified, publishing current folders... 0 3016909362 2017/10/20 01:09:34.856337 integration.go:89: Pausing watcher... 2017/10/20 01:09:35.106618 integration.go:93: Resuming watcher... 2017/10/20 01:09:35.106663 integration.go:101: Stopping the watcher... 2017/10/20 01:09:35.108001 integration.go:122: File system state modified, publishing current folders... 0 3016909362 2017/10/20 01:09:35.358245 integration.go:89: Pausing watcher... 2017/10/20 01:09:36.609668 integration.go:93: Resuming watcher... 2017/10/20 01:09:36.610408 integration.go:122: File system state modified, publishing current folders... 3016909362 3016909365 2017/10/20 01:09:36.860649 integration.go:101: Stopping the watcher...

FAIL exit status 1 FAIL github.com/smartystreets/goconvey/web/server/watch 4.530s

nim-nim avatar Oct 19 '17 23:10 nim-nim

Hi, FYI

I was getting similar off-by-one errors to the above, so I did a git pull in each of the listed repos at the top of your post - in my case:

github.com/jtolds/gls github.com/smartystreets/assertions golang.org/x/net golang.org/x/text

and it fixed the problem - thanks for the hint!

gedge avatar Apr 05 '19 10:04 gedge

sorry, I spoke too soon - I re-ran the tests and it failed

gedge avatar Apr 05 '19 10:04 gedge

e.g.

  * ~/src/go/src/github.com/smartystreets/goconvey/web/server/watch/integration_test.go
  Line 197:
  Expected: '2'
  Actual:   '1'
  (Should be equal)

gedge avatar Apr 05 '19 10:04 gedge