Comments (8)
You're not crazy, I've seen this too @mholt. Either it's a server bug or sublime is touching the file multiple times per save...
from goconvey.
@mholt @joliver Ok, this may sound crazy but I think I've figured this out and it has nothing to do with the server code. Open the keyboard settings in "System Preferences" and move the "Key Repeat" slider to "Off". Then start up your server and save a watched file several times (using Command-S), leaving a break between saves long enough for the tests to complete. Then move the slider to "Fast" and go back to the terminal and save the watched file (again with the keyboard shortcut). I've noticed that if I linger on that command even for the slighted amount of time I get two file events and therefore two save operations which result in two separate test runs. But this only happens when I have Key Repeat enabled. I've also saved several times using the mouse to select "Save" from the menu and have never seen two saves in succession. I'd love to see if you get the same behavior with the settings I've described. If we can verify this then I probably need to add a delay in which events are just ignored (which is what I thought the code was doing) to get around this issue because I like my key repeat very fast...
from goconvey.
Remember when I ran touch somefile?
On Oct 22, 2013 9:38 PM, "Michael Whatcott" [email protected]
wrote:
@mholt https://github.com/mholt @joliver https://github.com/joliverOk, this may sound crazy but I think I've figured this out and it has
nothing to do with the server code. Open the keyboard settings in "System
Preferences" and move the "Key Repeat" slider to "Off". Then start up your
server and save a watched file several times (using Command-S), leaving a
break between saves long enough for the tests to complete. Then move the
slider to "Fast" and go back to the terminal and save the watched file
(again with the keyboard shortcut). I've noticed that if I linger on that
command even for the slighted amount of time I get two file events and
therefore two save operations which result in two separate test runs. But
this only happens when I have Key Repeat enabled. I've also saved several
times using the mouse to select "Save" from the menu and have never seen
two saves in succession. I'd love to see if you g et the same behavior with
the settings I've described. If we can verify this then I probably need to
add a delay in which events are just ignored (which is what I thought the
code was doing) to get around this issue because I like my key repeat very
fast...
[image: screen shot 2013-10-22 at 9 35 57 pm]https://f.cloud.github.com/assets/202910/1387382/3edae006-3b94-11e3-9597-8661600028a8.png—
Reply to this email directly or view it on GitHubhttps://github.com//issues/51#issuecomment-26878400
.
from goconvey.
@joliver oh yeah... hmmm...
from goconvey.
@joliver I'm not seeing that right now. touch results in one save only for me.
from goconvey.
@joliver Wait, I just realized that I had modified the code for my tests, I may have found the bug...
from goconvey.
Alas, I can't figure out why sometimes I get single saves and sometimes I get doubles. I'll have this solved in the rewrite of the server...
from goconvey.
@mholt @joliver Hooray! Fixed! 137ac0a
from goconvey.
Related Issues (20)
- Rendering causes endless memory allocations on proto messages HOT 3
- go test pass but browser test fails
- map[int64]bool ShouldContainKey didn't work as expected HOT 1
- ShouldResemble for proto messages HOT 1
- ShouldResemble failing for identical values in GitHub action HOT 2
- convey.So bug report: errors.New() compares with nil return wrong result
- No detailed log output after run go test HOT 4
- SoMsg didn't print out msg in test report HOT 1
- CVE-2022-24785: Moment.js Path Traversal < 2.29.2
- Cannot find goconvey in $GOPATH/bin/ HOT 2
- Coverage reports fail w/ go1.20 HOT 3
- Inconsistent test coverage between command line and web ui HOT 1
- Update smarty/assertions to fix function comparison error
- goconvey benchmark
- can i get case name in Convey HOT 1
- error running go get -u because module declares its path as `github.com/smarty/assertions`
- couldn't handle this stray line: verbose: print additional output, v1.8.1 HOT 2
- Does `goconvey` support executing `goconvey` without inline? HOT 1
- XSS Vulnerability
- Why is there no output test name on the terminal HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goconvey.