Skip to content

Commit 2755235

Browse files
committed
test(dht): standardize struct field alignment in configuration tests
1 parent b8a62e1 commit 2755235

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

dht_config_test.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,14 @@ func TestDHTModeServerWithVariousCleanupIntervals(t *testing.T) {
237237
// TestDHTConfigurationCombinations tests various DHT configuration combinations
238238
func TestDHTConfigurationCombinations(t *testing.T) {
239239
tests := []struct {
240-
name string
241-
dhtMode string
242-
cleanupInterval time.Duration
243-
expectServerMode bool
244-
expectCleanupConfig bool
245-
expectedLogServerMessage string
246-
expectedLogClientMessage string
247-
expectedCleanupIntervalMsg string
240+
name string
241+
dhtMode string
242+
cleanupInterval time.Duration
243+
expectServerMode bool
244+
expectCleanupConfig bool
245+
expectedLogServerMessage string
246+
expectedLogClientMessage string
247+
expectedCleanupIntervalMsg string
248248
}{
249249
{
250250
name: "default configuration (empty mode)",
@@ -255,12 +255,12 @@ func TestDHTConfigurationCombinations(t *testing.T) {
255255
expectedLogServerMessage: "DHT mode: server",
256256
},
257257
{
258-
name: "server mode with custom cleanup",
259-
dhtMode: "server",
260-
cleanupInterval: 48 * time.Hour,
261-
expectServerMode: true,
262-
expectCleanupConfig: true,
263-
expectedLogServerMessage: "DHT mode: server",
258+
name: "server mode with custom cleanup",
259+
dhtMode: "server",
260+
cleanupInterval: 48 * time.Hour,
261+
expectServerMode: true,
262+
expectCleanupConfig: true,
263+
expectedLogServerMessage: "DHT mode: server",
264264
expectedCleanupIntervalMsg: "48h0m0s",
265265
},
266266
{

0 commit comments

Comments
 (0)