#1 Yesterday 07:01:26

Graeme
Member
Registered: 2020-10-05
Posts: 7

error in network protocols from mormot2tests

Hi

I am getting the following error when running mormot2tests.exe:

___________________________________________________________________
1.7. Network protocols:
  - SocketIO: 88 assertions passed  57us
DNS and LDAP: #39 adic.hd.free.fr    - DNS and LDAP:
      ldap
!  - DNS and LDAP: 1 / 3,924 FAILED  1.90s
     time.google.com : 2026-09-06 06:28:12.141Z = 2026-09-06 06:28:12.111Z
  - THttpPeerCache:
      peercachedirect

  ...
  ...


Software version tested: 2.4.13372 (2026-09-06 16:25:24)

Windows 11 64bit 25H2 (10.0.26200.9278) [ms1252 4GB 66581B01]
    24 x INTEL(R) XEON(R) SILVER 4510 [30MB] (x86)
    on Microsoft Corporation Virtual Machine Hyper-V UEFI Release v4.1
Using mORMot 2.4.13372 6 Sep 2026
    TSqlite3LibraryStatic 3.51.2 with internal MM
Generated with: Delphi 10.1 Berlin 32 bit Win compiler

Time elapsed for all tests: 2m41
Performed 6 Sep 2026, 16:29:14 by XXXX on XXX

Total assertions failed for all test suits:  1 / 172,338,903
! Some tests FAILED: please correct the code.
__________________________________________________________________________

Would you please assist me in resolving this problem.

Regards
Graeme Keast

Offline

#2 Yesterday 13:54:17

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,595
Website

Re: error in network protocols from mormot2tests

Please update your source code.
This has been fixed since a lot of time in the trunk.

Offline

#3 Today 02:36:35

Graeme
Member
Registered: 2020-10-05
Posts: 7

Re: error in network protocols from mormot2tests

Hi

The problem still exists.
I am using the instruction found at https://github.com/synopse/mORMot2.
As I do not have git installed I use the second method to get the source release from https://github.com/synopse/mORMot2/releases. I chose the latest stable 2.4 release)
I also download  the corresponding mormot2static.7z file

In your instructions for Delphi you say:
   Add the following string to your IDE library paths (for all target platforms, i.e. Win32 and Win64):
      $(mormot2);$(mormot2)\core;$(mormot2)\lib;$(mormot2)\crypt;$(mormot2)\net;$(mormot2)\db;$(mormot2)\rest;$(mormot2)\orm;$(mormot2)\soa;$(mormot2)\app;$(mormot2)\script;$(mormot2)\ui;$(mormot2)\tools;$(mormot2)\misc

Does the above get added to the Delphi Library path, the Browsing path or both. My current IDE setting have the values set in both.

Would you be able to send me a link to both the source files and corresponding static files for the latest stable Berlin release that I could use.
My email address is Graeme.Keast@optusnet.com.au

Thanks for all your assistance.

Regards
Graem

Offline

#4 Today 03:14:13

Prometeus
Member
Registered: 2020-11-20
Posts: 64

Re: error in network protocols from mormot2tests

Graeme,

  The latest 'stable release' is of Jan/2026. Since then, as always, 'mORMot 2' has been updated almost daily. The fix for the problem you pointed out was done on some day after that date. Up to this date/time, the latest update is '2.4.16753'. You don't need 'git' installed. Go to 'https://github.com/synopse/mORMot2', click the green button '<> Code', and then 'Download ZIP' for the latest update. I hope this can help you.

Offline

#5 Today 05:49:53

Graeme
Member
Registered: 2020-10-05
Posts: 7

Re: error in network protocols from mormot2tests

Hi Prometeus

Did as you suggested. Downloaded version 2.4 source and statis and now I get

1.8. Network protocols:
  - HttpApiWebSocketServer: 4 assertions passed  149.26ms
  - SocketIO:
      HttpBodyDownload! Network protocols - SocketIO
!
ldap
        3,968 assertions passed  1.85s
     time.google.com : 2026-09-07 04:36:34.699Z = 2026-09-07 04:36:34.664Z
  - DHCP: 89,055 assertions passed  28.37ms
     2000 DHCP handshakes in 10.16ms i.e. 192K/s, aver. 5.08us
     2000 DHCP renewals in 5.21ms i.e. 374.3K/s, aver. 2.60us
     2000 DHCP OnIdle in 7.01ms i.e. 278.2K/s, aver. 3.50us
  - THttpPeerCache:
      peercachedirectTHttpPeerCache: #13083 <>
404
200   CheckEqual  len a=64 b=64
  '5ca62fd2fd20ecdbcdd9e6ff0ba61dea53ffbd48c683d646fdbe89151d832956'
  '21d651c86d6295ed9c44666edc85fbfef8b0672d40919b6d4bcf650c9a91c79f'
CheckEqual  len a=0 b=64
  '21d651c86d6295ed9c44666edc85fbfef8b0672d40919b6d4bcf650c9a91c79f'

....

Software version tested: 2.4.16753 (2026-09-07 14:30:04)

Windows 11 64bit 25H2 (10.0.26200.9278) [windows-1252 4GB 66581B01]
    24 x INTEL(R) XEON(R) SILVER 4510 [30MB] (x86)
    on Microsoft Corporation Virtual Machine Hyper-V UEFI Release v4.1
Using mORMot 2.4.16753 7 Sep 2026
    TSqlite3LibraryStatic 3.51.2 with internal MM
Generated with: Delphi 10.1 Berlin 32 bit Win compiler

Time elapsed for all tests: 3m16
Performed 7 Sep 2026, 14:38:25 by graeme_admin on EXEC151

Total assertions failed for all test suits:  190,602 / 199,869,427
! Some tests FAILED: please correct the code.

Looks as though I have the correct version but am still getting the same error.

Could these errors be cause by a viruschecker?

Regards
Graeme

Offline

#6 Today 06:34:36

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,595
Website

Re: error in network protocols from mormot2tests

Please don't post output content directly in the forum thread.
Put the whole output as external link (e.g. gist), please.

The first part of tests has a HTTP server on localhost, which may fail indeed due to a weird antivirus. The MS BitDefender is reported to be fine usually.
But it may be the Delphi compiler version. I don't have Delphi 10.1 at hand, so I only validated XE8 and 10.4.2 Sidney with no issue. I found with 10.3 was some issues, but about numerical conversion so I guess it was not relevant to problems.

With https://github.com/synopse/mORMot2/commit/92d840eeb Delphi 10.3 is now better but still not fine on my side.
Those 10.x versions seem to have clearly issues with their own compilers.... any feedback is welcome.

Offline

#7 Today 06:57:05

Graeme
Member
Registered: 2020-10-05
Posts: 7

Re: error in network protocols from mormot2tests

Shall do.
And apologies.

Regards
Graeme

Offline

#8 Today 07:56:36

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,595
Website

Re: error in network protocols from mormot2tests

With https://github.com/synopse/mORMot2/commit/92d840eeb Delphi 10.3 is now better but still not fine on my side.
Those 10.x versions seem to have clearly issues with their own compilers.... any feedback is welcome.

Offline

Board footer

Powered by FluxBB