Eng Zer Jun
841a702e34
test: use `T.TempDir` to create temporary test directory ( #718 )
...
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-02-02 18:26:46 +11:00
Matt Joiner
357896fb65
gofumpt
2021-11-19 16:19:32 +11:00
Matt Joiner
8a7ddab785
Switch to github.com/anacrolix/fuse
2021-11-16 18:20:02 +11:00
Matt Joiner
c6ee03f449
gofumpt
2021-11-08 14:47:01 +11:00
Matt Joiner
c3c982b621
Fixes for wasm
2021-06-23 17:24:50 +10:00
Matt Joiner
d56087441e
Fix duplicate import under different aliases
2021-01-19 10:55:02 +11:00
Matt Joiner
2a7352aad2
Don't block trying to fill entire Reader.Read
...
This conforms more to the contract in io.Reader. It's possible the old behaviour was better in reducing overhead, but that can be iterated on (or added as comments next time).
2020-10-27 12:59:07 +11:00
Matt Joiner
3d7a95a65d
Use testing.T.Name instead of missinggo.GetTestName
...
This handles subtests correctly, and removes the need to specify when to export due to collisions with the old function.
2020-10-10 10:59:17 +11:00
Matt Joiner
cb1bf0f413
goimports -local
2019-08-21 20:58:40 +10:00
Matt Joiner
7b47dcbf51
fs: Fix test failure when default client port is unavailable
2019-07-30 17:25:10 +10:00
Matt Joiner
958ff01eab
Change the default client port
2019-07-19 16:19:21 +10:00
Matt Joiner
fc4fab91f5
Switch to goimports import sorting
...
Used to use sortimports, but it's old, and goimports seems to have an opinion now.
2018-11-02 23:12:01 +11:00
Matt Joiner
bdf8619cf3
Missed deferring release of an exported status writer
2018-06-26 21:19:49 +10:00
Matt Joiner
57849844ae
Rework status export in tests to allow count > 1 without a server for every test
2018-06-26 19:54:48 +10:00
Matt Joiner
cee8e3b9f9
Update external use of ClientConfig
2018-06-16 16:33:40 +10:00
Matt Joiner
dfb15da131
Another use of LoopbackListenhost
2018-04-12 16:10:46 +10:00
Matt Joiner
83e4c65fc4
Add LoopbackListenHost
2018-04-12 15:21:31 +10:00
Matt Joiner
b5df073217
Support different hosts for each network
...
CircleCI's localhost hostname doesn't resolve for IPv6.
2018-04-12 15:06:53 +10:00
Matt Joiner
319e57d1c6
Rework conns to/and allow multiple DHT servers
...
This will help with #229 , and IPv6 support.
2018-04-12 11:41:07 +10:00
Matt Joiner
eb448d132d
Update context imports
2018-01-31 16:42:26 +11:00
Matt Joiner
cecc70f4cc
More megacheck
2017-11-08 00:12:34 +11:00
Matt Joiner
25d1f371c3
fs: Some test tidying
2017-09-22 13:46:00 +10:00
Matt Joiner
f7e07237ed
fs: Fix tests now that data verification isn't automatic
2017-09-15 19:34:42 +10:00
Matt Joiner
58d66a1b62
fs: Move file Read behaviour onto a new handle type
2017-08-27 14:19:58 +10:00
Matt Joiner
52741c2671
TestUnmountWedged: Don't deadlock if the Read fails
2017-08-27 14:00:37 +10:00
Matt Joiner
54764254f4
Skip on fusermount failure
2017-06-01 15:39:44 +10:00
Matt Joiner
714a72cdd4
Tighten FUSE test skipping
2017-06-01 11:19:45 +10:00
Matt Joiner
3602d90b65
gofmt simplify
2016-11-22 14:01:09 +11:00
Matt Joiner
2a1cef7c9e
Remove the InfoEx type, and don't generate its infohash on the fly
...
Fixes #106 .
2016-08-26 20:29:05 +10:00
perses
39cf5a7fde
fs: fix isSubPath for top-level directories ( #105 )
2016-08-01 23:56:56 +10:00
Matt Joiner
dce3a7f675
Rework Client listeners
...
In particular, if the ListenAddr used a dynamic port ":0", and both TCP and uTP were enabled. If the TCP listen succeeded, and the uTP did not, the TCP listener was leaked, and another port number was not tried.
2016-05-11 21:11:52 +10:00
Matt Joiner
b5812bb0b7
Remove the last of the "config dir" stuff
...
This just conflates the Client. It should be done orthogonally.
2016-05-05 23:05:28 +10:00
Matt Joiner
2d160b0419
metainfo.InfoEx.Hash becomes a function, UpdateBytes is added, and Bytes used in marshalling
...
Fixes #80 .
2016-05-05 22:40:38 +10:00
Matt Joiner
28c9ec2bd1
Some changes to metainfo.InfoEx and testutil
2016-04-30 11:07:29 +10:00
Seth Hoenig
9f4bf70e17
refactor struct identifiers to follow conventional go names
2016-04-18 23:11:11 -05:00
Matt Joiner
f83771b660
Apply ineffassign linter
2016-04-04 15:39:26 +10:00
Matt Joiner
8f164ae956
Remove some of the magic ConfigDir stuff
...
This might become a helper. Torrent file cache still remains.
2016-04-04 14:04:48 +10:00
Matt Joiner
d3a1c79c79
Merge Torrent and torrent types
2016-04-03 18:40:43 +10:00
Matt Joiner
0a3a5d6ae0
Finish fixing tests
2016-03-29 00:24:00 +11:00
Matt Joiner
b97b50aca9
New storage interface
2016-03-28 20:38:30 +11:00
Matt Joiner
ca5080a382
fs: Change listen addrs to localhost in tests
...
Seems to improve reliability. Maybe the missinggo.Addr{IP,Port} change did something.
2016-02-22 02:39:49 +11:00
Matt Joiner
815d118d6e
fs: Tidy up tests
2016-02-22 02:38:52 +11:00
Matt Joiner
23ee45e09f
fs test: Missed package specifier
2015-10-02 00:16:50 +10:00
Matt Joiner
b7a8bb7570
Simplify the torrent Data interface
...
None of the methods are optional anymore. Removed the nasty wrappers for some data implementations. Moved data.Data back into the main torrent package. Should make it much easier to understand for people implementing their own Data implementations.
2015-10-02 00:09:04 +10:00
Matt Joiner
e735aeeee3
fs: Update for changes in bazil.org/fuse
2015-08-23 19:25:33 +10:00
Matt Joiner
d077fed72d
Some utils moved to missinggo
2015-08-04 00:29:01 +10:00
Matt Joiner
8146001893
fs: Fix test when :50007 already in use
2015-06-23 02:03:08 +10:00
Matt Joiner
c76f3c1ead
Upstream bazil.org/fuse changed again ಠ_ಠ
2015-06-22 23:02:29 +10:00
Matt Joiner
ced5733c88
Improve uploading/seeding
2015-06-16 16:57:47 +10:00
Matt Joiner
e871dfbbce
torrentfs: Fix bad import
2015-06-03 00:14:55 +10:00